27 cards
Posted about 6 years ago. Visible to the public.

rspec-rails 1.3 compatibility fork for Rails LTS 2.3

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 Archive during controller specs.


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

With Bundler

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.

Without Bundler

If you are using Rails 2.3 LTS without Bundler, require the attached monkey patch before your specs to fix this.

Your development team has a full backlog of feature requests, chores and refactoring coupled with deadlines? We are familiar with that. With our "DevOps as a Service" offering, we support developer teams with infrastructure and operations expertise.

Owner of this card:

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