[Rails] Re: get & post methods in controller's test
Sorry, my tests were inside an integration('request') test:
/spec/requests/dog_pages_spec.rb
In my rails tutorial book, it says that inside a controller test, you
can't use urls at all, e.g
get '/about'
get '/'
...you can only do:
get 'actionA'
get 'actionB'
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home