Created
May 18, 2014 14:05
-
-
Save brandonpittman/f54f05aa1c93c1716935 to your computer and use it in GitHub Desktop.
middleman index spec
This file contains hidden or 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 "index", :type => :feature do | |
before do | |
visit "/" | |
end | |
it "has the correct title header" do | |
page.should have_selector "h1" | |
within "h1" do | |
page.should have_content /Middleman is Watching/i | |
end | |
end | |
it "has a paragraph in there too" do | |
page.should have_selector "p" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment