-
-
Save radar/4075413 to your computer and use it in GitHub Desktop.
Rspec problem
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
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