Re: [Rails] Re: Hartl rails tutorial need help - regd "Test-driven development" introduction
Boot up the server and look at the page in your browser. See if the phrase "Sample App" is on it (case sensitive), or if there's a nice big red error message.
On Sat, Jan 11, 2014 at 6:30 PM, Max <aamax@xmission.com> wrote:
please post the test code you're trying to run. also, unless it's a lot of text, add the html for the page you're testing.
the test is looking at the html being returned by the rails controller to see if it has the text "Sample App" in it and it's failing because it's not finding that text. the code for the test is around: /spec/requests/static_pages_spec.rb:7
The initial exercise shows text for a failing test - that text isn't exactly what you've posted in your results but the meaning is the same - it can't find "Sample App" in the response. have you written the code to make the test pass yet? you may be trying to be too literal in the tutorial and sometimes different versions of testing frameworks or versions of rails/ruby etc can affect some of those details. not sure if that's what's happening here but i don't see a huge disconnect from what you've reported and what the tutorial is expressing.
hth,
Max--To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0fba04c7-ca02-4d12-8a7d-8e8b4e34297e%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAAb4X%3DwU9Tpxkh_Zw3ugT%2BNs-6kyszXXMTwhSX10jPf75Tj%2BPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home