27 cards
Posted over 4 years 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 Archive .

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.

Does your version of Ruby on Rails still receive security updates?
Rails LTS provides security patches for unsupported versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2).

Owner of this card:

Avatar
Henning Koch
Last edit:
over 4 years ago
by Henning Koch
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
This website uses short-lived cookies to improve usability.
Accept or learn more