Created
June 15, 2013 00:28
-
-
Save lporras/5786248 to your computer and use it in GitHub Desktop.
test
This file contains 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 "account already exists" do | |
before :each do | |
set_omniauth | |
visit "/catalog/users/auth/archdaily" | |
sleep(1) | |
#page.status_code.should be(302) | |
current_path.should == "/catalog/after_signup/complete_profile" | |
user = FactoryGirl.attributes_for(:user) | |
account = FactoryGirl.create(:account, name: user[:account_name]) | |
fill_in 'account_name', :with => user[:account_name] | |
select( user[:application_markets].first, :from=>'application_markets') | |
select( "English", :from=>'lang') | |
click_button('Sign up') | |
end | |
it "should be redirected to /catalog/after_signup/complete_profile" do | |
current_path.should == "/catalog/after_signup/complete_profile" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment