# Rails, rSpec edge problems

**URL:** <https://www.ruby-forum.com/t/rails-rspec-edge-problems/116476>\
**Category:** RSpec\
**Created:** [October 5, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/rails-rspec-edge-problems/116476 "2007-10-05T21:52:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [October 5, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/rails-rspec-edge-problems/116476/1 "2007-10-05T21:52:56Z")

</div>

Hi,  
Does the Story Runner work on edge rails? I thought that is what the  
example app was using but I am on the latest Rails and latest rSpec  
revisions and I am having problems. When I call ‘render\_template’ in a  
story I get the following:

NoMethodError: undefined method `render\_template’ for  
#ActionController::Integration::Session:0x327d974

Do I need to include something or why would this method not be found?  
The full story is at: [Parked at Loopia](http://pastie.caboo.se/104247)

Thanks,  
Ben

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [October 5, 2007, 10:26pm UTC](https://www.ruby-forum.com/t/rails-rspec-edge-problems/116476/2 "2007-10-05T22:26:51Z")

</div>

On 10/5/07, Ben M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Do I need to include something or why would this method not be found?  
> The full story is at: [Parked at Loopia](http://pastie.caboo.se/104247)

Actually, even without edge rails, I was having trouble mixing in a  
module  
using include myself, got the same message above, but for a different  
method. Not sure if ‘include’ was having the desired effect for me  
(although I found another path by doing the include in “helper.rb”  
instead  
of inside the Scenario, which solved the problem for me.

- Geoffrey

---

<div class="post-metadata">

**Author:** ![glenatron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/94ad74/32.png) [@glenatron](https://www.ruby-forum.com/u/glenatron)\
**Post date:** [October 5, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/rails-rspec-edge-problems/116476/3 "2007-10-05T23:07:12Z")

</div>

Well, I am not even trying to include anything. I basically have what  
all teh examples of the story runner have. I can’t seem to get the  
Story Runner to work with a simple example. This is all it takes to  
make it fail on my app:

require File.join(File.dirname( **FILE** ), “helper”)  
Story “Signin process”, %{  
As a person  
I want to sign up for an account  
So that I can view and contribute content  
}, :type =\> RailsStory do

Scenario “An individual looking for support” do

```
When "visiting the registration page at", "/signup" do |page|
  get page
end

Then "viewer should see", "users/new" do |template|
  response.should render_template(template)
end

```

end

end

When I run this story (“ruby stories/signin\_process.rb”) I get the  
error:

NoMethodError: undefined method `render\_template’ for  
#ActionController::Integration::Session:0x327d974

Any ideas?

Thanks,  
Ben
