# Rails 2.1.0 / RSpec 1.1.4 mismatch?

**URL:** <https://www.ruby-forum.com/t/rails-2-1-0-rspec-1-1-4-mismatch/149076>\
**Category:** Rails\
**Created:** [September 20, 2008, 1:40am UTC](https://www.ruby-forum.com/t/rails-2-1-0-rspec-1-1-4-mismatch/149076 "2008-09-20T01:40:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hassan\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/34f0e0/32.png) [@Hassan\_S](https://www.ruby-forum.com/u/Hassan_S)\
**Post date:** [September 20, 2008, 1:40am UTC](https://www.ruby-forum.com/t/rails-2-1-0-rspec-1-1-4-mismatch/149076/1 "2008-09-20T01:40:58Z")

</div>

Trying to do a simple controller test with RSpec 1.1.4 on Rails 2.1.0 –

it “should render index template” do  
do\_get  
response.should render\_template(‘index’)  
end

:: results in a

1. 

NoMethodError in ‘GroupsController handling GET /groups should render  
index template’  
undefined method `rendered\_file’ for  
#ActionController::TestResponse:0x1eb8f60

Meanwhile, NetBeans shows a deprecation warning with `render_template`,  
but  
changing it to the recommended form:  
response.should render :template =\> ‘index’

:: results in

1. 

NoMethodError in ‘GroupsController handling GET /groups should render  
index template’  
undefined method `render’ for  
#Spec::Rails::Example::ControllerExampleGroup::Subclass\_1::Subclass\_1:0x1701ab0

Anyone seen this before, and/or have any suggestions?

TIA!

## H\*

Hassan S. ------------------------ removed\_email\_address@domain.invalid
