Rspec-rails setup in Rails 3

I’m missing something in my setup of rspec-rails in a rails 3
project. I’ve included the link to the gist. It seems that it
doesn’t recognize rails routes for some reason…getting “undefined
local variable or method”. The spec file I’m running is sitting in
spec/integration, if that matters. Thanks for any help.

ruby 1.9.2p0
rails 3.0.0
rspec-rails 2.0.0.beta.20


It looks like you started your integration spec with “context”. Try
starting it (top level) with “describe”. Think of context as “setting
the context for what you are describing”.

Let us know if that fixes it.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs