Created
August 25, 2013 13:50
-
-
Save cnocon/6333939 to your computer and use it in GitHub Desktop.
RSpec Test for "Contact" content in contact.htm.erb view.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe "Static pages" do | |
. | |
. | |
. | |
describe "Contact page" do | |
it "should have the content 'Contact'" do | |
visit '/static_pages/contact' | |
expect(page).to have_content('Contact') | |
end | |
it "should have the right title" do | |
visit '/static_pages/contact' | |
expect(page).to have_title("RecipeApp | Contact") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment