I'm very new to RoR and am receiving the following error on rspec spec/

 1) Layouts GET /layouts works! (now write some real specs)
     Failure/Error: get layouts_path
     NameError:
       undefined local variable or method `layouts_path' for
#<RSpec::Core::ExampleGroup::Nested_5::Nested_1:0x007f8adc382020>
     # ./spec/requests/layouts_spec.rb:7:in `block (3 levels) in <top
(required)>'

My layouts_spec.rb looks like the following:

require 'spec_helper'

describe "Layouts" do
  describe "GET /layouts" do
    it "works! (now write some real specs)" do
      # Run the generator again with the --webrat flag if you want to
use webrat methods/matchers
      get layouts_path
      response.status.should be(200)
    end
  end
end


Does anyone have an idea of the problem?  Thanks in advance for any
replies.  Cheers.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to