Skip to content

Instantly share code, notes, and snippets.

@petedickson
Created March 2, 2011 18:45
Show Gist options
  • Save petedickson/851449 to your computer and use it in GitHub Desktop.
Save petedickson/851449 to your computer and use it in GitHub Desktop.
Rspec 'have_selector' test fails despite correctly rendered page
Failure/Error: response.should have_selector('title', :content => "About")
expected following output to contain a <title>About</title> tag:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
# ./spec/requests/layout_links_spec.rb:33:in `block (2 levels) in <top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment