Skip to content

Instantly share code, notes, and snippets.

@benjohnson77
Created April 22, 2015 05:09
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 benjohnson77/e8b6d877446e395caa29 to your computer and use it in GitHub Desktop.
Save benjohnson77/e8b6d877446e395caa29 to your computer and use it in GitHub Desktop.
describe 'product' do
before(:each) do
visit '/login'
fill_in 'user_name', :with => 'admin'
fill_in 'password', :with => 'Legalinc2015'
click_on 'Sign in'
click_on 'Products'
end
describe 'stats' do
it 'has stats', :js => true do
expect(page).to have_content('Filter')
end
it 'has a link to Create New', :js => true do
click_on 'Create New'
expect(page).to have_content('Back')
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment