Sha256: 86e731f5521c0f1feb70ba5be023ee953b0952eb7f00b31c16f11084a269351e

Contents?: true

Size: 670 Bytes

Versions: 21

Compression:

Stored size: 670 Bytes

Contents

require 'spec_helper'

RSpec.steps "User Signs Up", :js => true, :vcr => {} do
  before :all do
    @user = FactoryGirl.build(:user)
  end

  perform_steps "sign up with"

  it "should have confirmation link" do
    expect(page).to have_content("confirmation link")
  end

  it "should send email" do
    expect(ActionMailer::Base.deliveries).to_not be_empty
  end

  it "should have link in email" do
    email = open_email(@user.email)
    expect(email).to have_link('Confirm my account')
  end

  step "confirm user" do
    User.last.confirm
  end

  perform_steps "sign in with"

  it "should have sign out" do
    expect(page).to have_content("Sign Out")
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
xing-framework-1.0.0.pre.beta.1 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-1.0.0.pre.beta default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-1.0.0.pre.alpha default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.3.2 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.3.1 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.3.0 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.9 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.9.beta1 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.8 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.8.beta1 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.7 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.7.pre.beta1 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.6 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.5 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.4 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.3 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.2 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.1 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.2.0 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb
xing-framework-0.0.3 default_configuration/base_app/backend/spec/features/user_signs_up_spec.rb