310 rspec-rails 1.3 compatibility fork for Rails LTS 2.3

Updated . Posted . Visible to the public.

An expectation like this will fail with Rails LTS 2.3:

should render_template(:edit)

The error will look like this:

expecting <:edit> but rendering with <"">

This is an issue with rspec-rails 1.x monkey-patching into ActionController Show archive.org snapshot during controller specs.

Fix

To fix this, use our compatibility fork of rspec-rails 1.3 Show archive.org snapshot .

If you are using Rails 2.3 LTS with Bundler you can use the fork by updating your Gemfile:

gem 'rspec-rails', :git => 'https://github.com/makandra/rspec-rails.git', :branch => '1-3-lts'

Now run bundle update rspec-rails.

Henning Koch
Last edit
Henning Koch
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to Rails LTS documentation (2016-08-24 08:07)