Skip to content

Instantly share code, notes, and snippets.

@lporras
Created June 15, 2013 00:28
Show Gist options
  • Save lporras/5786248 to your computer and use it in GitHub Desktop.
Save lporras/5786248 to your computer and use it in GitHub Desktop.
test
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