Philip Hallstrom wrote: >> Thanks for the responses! >> >> So to me it seems like Ruby/Rails controllers know about the model; >> since Rails "stitches" the view, controllers and model together for you >> I guess that makes sense. >> >> A similar thing that is throwing me for a loop is something like this. >> >> test "should get index" do >> get :index > > This 'get' statement makes a request and gets the response. All the > other methods know about that response. The details are hidden away... > >> How in the world do the assert statements know of the HTML that was >> generated? > > See here for more... > > http://guides.rubyonrails.org/testing.html
Ahh - thanks for the response(and link) -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

