20 cards
View
Posted 7 months ago. Visible to the public.

rspec-rails 2.14 compatibility fork for Rails 3.2 LTS

With Rails 3.2 LTS your RSpec 2 controller specs might fail with an error like this:

Copy
NoMethodError: undefined method `[]' for nil:NilClass

Fix

To fix this, use our compatibility fork of rspec-rails 2.14.

You can switch to the fork by updating your Gemfile:

Copy
gem 'rspec-rails', :git => 'https://github.com/makandra/rspec-rails.git', :branch => '2-14-lts'

Now run bundle update rspec-rails.

Owner of this card:

Avatar
Henning Koch
Last edit:
7 months ago
by Henning Koch
This website uses cookies to improve usability and analyze traffic.
Accept or learn more