Creating records in specs can be so fast that two records created instantly after one another might have the same...
This is what worked for me in a Rails 4: # JSON data as first argument, then parameters patch :update, { some...
In Thunderbird, you can set custom font faces and sizes for reading plain-text e-mails. However, Thunderbird sometimes "randomly...
Capybara and most assistive technology will fail to find tags that are missing an href attribute. This will probably happen...
When your system is not running on English, you may sometimes want to run some applications and not use your...
Though nowhere to be found in the official docs, this works just fine. describe Facebook::Post do it_behaves_like...
List flavors to show the ID and name, the amount of memory, the amount of disk space for the root...
Sometimes you need complex expectations on method arguments like this SomeApi.should_receive(:find).with(:query => '*foo*', :sort => 'timestamp ASC', :limit...
Due to network or hardware failures, it can happen that one of your cronjobs will not run at the time...
TL;DR In blueprints, always wrap associations in blocks. # Broken Task.blueprint(:vacation) do project Project.make(:vacation) hours 8 accounting_method...
So you have placed a breakpoint somewhere and now want to dig around, but not even inspecting variables is working...
While RSpec 1 and 2 decided that specs inside spec/model are model specs, and those inside spec/features are feature specs...
When you don't only have a favicon.ico in your project but also PNGs of different sizes and backgrounds, you...
Spreewald 1.1.0 drops the be_true and be_false matchers in order to be RSpec 3 and Ruby 2 compatible...
When making cross-domain AJAX requests with jQuery (using CORS or xdomain or similar), you will run into issues with...
The debugger gem does not seem to be properly working on Ruby 2. Use byebug instead! Byebug is a simple...
The attached RSpec matcher allows for comfortably testing delegation. Examples describe Post do it { should delegate(:name).to(:author).with...
SudoSlider is a simple yet powerful content slider that makes no (or very few) assumptions about your markup and is...
If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with...
So you're getting an error message like the following, although your Gemfile lists shoulda-matchers and it has always...
Using this gem, whenever a Capybara test in Cucumber, Rspec or Minitest fails, the HTML for the failed page and...
RSpec 3.0 deprecates the :should way of writing specs for expecting things to happen. However, if you have tests you...
Sometimes you're getting an ActiveSupport deprecation warning that you cannot or don't want to fix. In these cases...
Warnings like those below may originate from rspec or shoulda-matchers or other gems that have not updated yet to...