There seems to be no built-in matcher in RSpec to check if a string contains terms in the desired...
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...
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...
In a project team for a bigger project people have several roles: Developer: at makandra Project lead: at makandra
At makandra, we've built a few gems over the years. Some of these are quite popular: spreewald (> 1M downloads...
As a web developer, you know Google Analytics (GA). Probably you've dropped the GA snippet into more than one...
Why secure-only cookies used to be necessary Cookies have an optional secure flag. It tells the browser to not...
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.
You might have some trouble running a Rails LTS 2 app with MySQL 5.7. If you don't want to...
When flagging a spec that will be implemented later as pending, include a failing spec body or RSpec 3 will...
When you have a pending Cucumber step (or feature) that also uses an existing VCR cassette, your pending test may...
This cucumber step is useful for testing an image (looking at the src of the image). Then(/^I should see...
To check which elements an ActiveRecord relation contains use the contain_exactly matcher. describe User do let!(:admin) { create(:user...
This is a small example on how you can check if your Postgres index can be used by a specific...
The issue: You are using stub_const to change a constant value for your test. stub_const "SomeClass::CONST", 'test...
This error is raised because your old database does not have a configured environment yet, which Rails 5 enforces.