Return to Snippet

Revision: 60137
at October 23, 2012 03:43 by jlippiner


Updated Code
# visits a page and makes sure there is no visible HTML to the user
def screen(path)
  visit (path)
  if page.has_content?('</')
    save_and_open_page
    page.should_not have_content('</')
  end
end

Revision: 60136
at October 23, 2012 03:41 by jlippiner


Initial Code
# visits a page and makes sure there is no visible HTML to the user
def screen(path)
  visit (path)
  page.should_not have_content('</')
  if page.has_content?('</')
    save_and_open_page
  end
end

Initial URL

                                

Initial Description
RSpec + Capybara method to visit a page and make sure no encoded HTML is displayed to use.  Stick in spec_helper

Initial Title
RSpec + Capybara method to visit a page and make sure no encoded HTML is displayed to use

Initial Tags

                                

Initial Language
Rails