Arup Rakshit
2014-Jan-11 06:56 UTC
Hartl rails tutorial need help - regd "Test-driven development" introduction
Hi, I am getting some unexpected error which is not mentioned in the rails tutorials(http://ruby.railstutorial.org/chapters/static-pages#sec-TDD) I am following : (arup~>sample_app)$ bundle exec rspec spec/requests/static_pages_spec.rb F Failures: 1) Static pages Home page should have the content 'Sample App' Failure/Error: expect(page).to have_content('Sample App') expected #has_content?("Sample App") to return true, got false # ./spec/requests/static_pages_spec.rb:9:in `block (3 levels) in <top (required)>' Finished in 0.04079 seconds 1 example, 1 failure Failed examples: rspec ./spec/requests/static_pages_spec.rb:7 # Static pages Home page should have the content 'Sample App' Randomized with seed 23303 ================ **expected #has_content?("Sample App") to return true, got false** is not mentioned in the tutorial. What did I wrong? -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/891a433905964eef8a204f0456cd171b%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.