Sha256: ebf3deaf9844703b53ad4d2f228520491a50421b06e47d602289af7da3669d4c

Contents?: true

Size: 395 Bytes

Versions: 12

Compression:

Stored size: 395 Bytes

Contents

shared_examples_for 'a registration validation error' do
  it 'should not create a user' do
    expect { subject }.to_not change { User.count }
  end

  it 'should not create a user on the auth server' do
    subject
    expect(auth_client).to_not have_received(:create_user)
  end

  it 'should display an error message' do
    subject
    expect(page).to have_content(error_message)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
devise_g5_authenticatable-0.3.0 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-0.2.5.beta spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-0.2.4 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-0.2.4.beta spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-0.2.3 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-0.2.2 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-0.2.1 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-0.2.0 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-0.1.3 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-0.1.2 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-0.1.1 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-0.1.0 spec/support/shared_examples/registration_error.rb