Sha256: d7092b690ec5d134d84beeb31730292499eac67340db3fd80222f92f7e506ab4

Contents?: true

Size: 432 Bytes

Versions: 7

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

RSpec.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

7 entries across 7 versions & 1 rubygems

Version Path
devise_g5_authenticatable-1.0.3 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-1.0.2.rc.3 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-1.0.2.rc.2 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-1.0.2.rc.1 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-1.0.1.rc.1 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-1.0.0 spec/support/shared_examples/registration_error.rb
devise_g5_authenticatable-1.0.0.pre.1 spec/support/shared_examples/registration_error.rb