Skip to content

Instantly share code, notes, and snippets.

@brandonpittman
Created May 18, 2014 14:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonpittman/f54f05aa1c93c1716935 to your computer and use it in GitHub Desktop.
Save brandonpittman/f54f05aa1c93c1716935 to your computer and use it in GitHub Desktop.
middleman index spec
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