In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...
When you are using lambdas in RSpec to assert certain changes of a call, you know this syntax: expect { playlist.destroy...
Geordi uses parallel_tests if available for running the test suite. To debug an application it is very unhandy to...
There seems to be no built-in matcher in RSpec to check if a string contains terms in the desired...
A JavaScript error in an E2E test with Selenium will not cause your test to fail. This may cause you...
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...
RSpec let's you chain a matcher with .or. The expectation will then pass if at least one matcher matches...
CarrierWave comes with some RSpec matchers which will make testing more comfortable. Let's say you have an Uploader like...
If the argument list is the same every time: expect(object).to receive(:foo).with('argument').and_return('response 1...
Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...
When flagging a spec that will be implemented later as pending, include a failing spec body or RSpec 3 will...
To check which elements an ActiveRecord relation contains use the contain_exactly matcher. describe User do let!(:admin) { create(:user...
The issue: You are using stub_const to change a constant value for your test. stub_const "SomeClass::CONST", 'test...
Situation: You want to write a spec for a function inside an Angular service. This function at some point makes...
Sometimes when working with VCR you still want to use webmock. Since VCR hooks into webmock and fails when an...
RSpec allows you to mark a single Example/ExampleGroup so that only this will be run. This is very useful when...
When an Rspec example fails, I usually investigate by running that example again using rspec . However, this does not work...
You are not using javascript tests The file is served from a public folder (not via controller) Problem description...
Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...
RSpec allows defining methods inside describe/context blocks which will only exist inside them. However, classes (or any constants, for that...
before(:all) runs the block once before all of the examples. before(:each) runs the block once before each...
You should prefer native promises to jQuery's Deferreds. Native promises are much faster than their jQuery equivalent. Native promises...
You can not use the hash_including argument matcher with a nested hash: describe 'user' do let(:user) { {id: 1...