Skip to content

Instantly share code, notes, and snippets.

@radar
Forked from nathanjsharpe/signup_spec.rb
Created November 14, 2012 22:49
Show Gist options
  • Save radar/4075413 to your computer and use it in GitHub Desktop.
Save radar/4075413 to your computer and use it in GitHub Desktop.
Rspec problem
describe 'on signup page' do
before { visit '/signup' }
context "with invalid information" do
# tests here work great
end
context 'with valid information' do
before do
# Fill in form
end
describe "confirmation page" do
it "displays flash message for account creation" do
click_on "Create Account"
page.should have_content('Your online account has been created.')
end
describe "welcome page" do
it "shows flash message welcoming user" do
click_on "Confirm Purchase"
page.should have_content('Welcome')
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment