Masonry is a famous library to dynamically arrange a grid of items that have different aspect ratio, like horizontal and...
For Sidekiq to be able to retry your jobs it has to be able to catch errors that occur while...
A JavaScript error in an E2E test with Selenium will not cause your test to fail. This may cause you...
Geordi's cucumber command has a --rerun option that reruns failing tests the given number of times. Usage: geordi cucumber...
If you use transactional_fixtures or the database_cleaner gem with strategy :transaction, after_commit callbacks will not be fired...
If validations failed for a record, and you want to find out if a specific validation failed, you can leverage...
Let's say you have a gem which has the following module: module SuperClient def self.foo 'Foo' end
Migrating data from a legacy into a new system can be a surprisingly large undertaking. We have done this a...
At makandra, we've built a few gems over the years. Some of these are quite popular: spreewald (> 1M downloads...
Why secure-only cookies used to be necessary Cookies have an optional secure flag. It tells the browser to not...
If you want to fill in textareas with multiple lines of text (containing line breaks / new lines) you can use...
If possible your code should detect features, not browsers. But sometimes you just need to sniff the browser. And when...
When you need to store structured data (like Ruby hashes) in a single database column with ActiveRecord, a simple way...
RSpec let's you chain a matcher with .or. The expectation will then pass if at least one matcher matches...
If your rails application is unable to send mails, it might be useful to debug your settings using the rails...
CarrierWave comes with some RSpec matchers which will make testing more comfortable. Let's say you have an Uploader like...
When you need test images, instead of using services like lorempixel or placehold.it you may generate test images yourself.
If the argument list is the same every time: expect(object).to receive(:foo).with('argument').and_return('response 1...
When you find yourself constantly ignoring a RubyMine warning, you can simple disable that warning and de-clutter your editor...
You might have some trouble running a Rails LTS 2 app with MySQL 5.7. If you don't want to...
You need to update a lof gems. Make sure you don't have any version constraints in your...
We often use the Then console step from spreewald in combination with geordi vnc from geordi to debug tests within...
In Spreewald 1.10.4+, nested patiently blocks are now patient. Here is an example: patiently do outer_code patiently do
When flagging a spec that will be implemented later as pending, include a failing spec body or RSpec 3 will...