Following along Hartl’s tutoria for Rails:
class StaticPagesControllerTest < ActionController::TestCase
test “should get home” do
assert_select “title”, "Ruby on Rails Tutorial Sample App"
Expected at least 1 element matching “Home”, found 0…
Expected 0 to be >= 1.
This is the result of the [bundle exec rake test]… which is not supposed to happen according to Hartl’s tutorial.
By the way here is the html in between the title tags that we had to change in order to implement the full_title method of “erb”.<%= full_title(yield(:title)) %>
This has come up a few times already, although I copied right off of the tutorial?
Is this on my part? And if it is? What does this mean and what can be done to prevent? Other explanations on the web are pretty vague about this…