Skip to content

Instantly share code, notes, and snippets.

@mrinterweb
Created February 15, 2014 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrinterweb/9014607 to your computer and use it in GitHub Desktop.
Save mrinterweb/9014607 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe "root path", js: true do
before do
visit '/'
end
it "should have some content on the page" do
expect(page).to have_content 'Welcome to a special site'
end
it "should interact with about" do
click_link 'About site'
expect(page).to have_content 'About Page Header'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment