Sha256: 124a77bb3e3c9386f9d2f23748ebff80aa89df1cb43189f99116b214a96a2506
Contents?: true
Size: 993 Bytes
Versions: 2
Compression:
Stored size: 993 Bytes
Contents
require 'spec_helper' # FIXME Relies on spec/dummy/config/initializers/omniauth-identity.rb or you get # stack/routing/middleware issues. # feature "Identity Registration" do background do FactoryGirl.create(:identity_user, :email => 'user@example.com', :password => 'caplin') end scenario "Signing up with existing email" do visit '/signup' fill_in 'Email', :with => 'user@example.com' fill_in 'password', :with => 'caplin' fill_in 'password_confirmation', :with => 'caplin' click_button 'Sign Up' page.should have_css('.error') page.should have_button('Sign Up') end scenario "Signing up with valid email" do visit '/signup' fill_in 'Email', :with => 'diffuser@example.com' fill_in 'password', :with => 'secrets' fill_in 'password_confirmation', :with => 'secrets' click_button 'Sign Up' page.should have_text 'Welcome to The app!' page.should have_no_css('.error') page.should have_no_button('Sign Up') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
socialite-0.1.0.pre.3 | spec/features/identity_registration_spec.rb |
socialite-0.1.0.pre.2 | spec/features/identity_registration_spec.rb |