Sha256: afbc279518be33390acc0e3108386b329d12da3e7110fe24348e791d727297f3

Contents?: true

Size: 329 Bytes

Versions: 19

Compression:

Stored size: 329 Bytes

Contents

RSpec.shared_examples 'Nyauth::ResetPasswordAvility' do |klass|
  let!(:instance) { create(klass.name.downcase.to_sym) }

  describe '#request_reset_password' do
    subject { instance.request_reset_password }

    it do
      expect {
        subject
      }.to change(instance, :reset_password_key).from(nil)
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
nyauth-0.7.2 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.7.1 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.7.0 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.6.2 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.6.1 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.6.0 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.5.0 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.4.0 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.3.0 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.2.8 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.2.7 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.2.6 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.2.5 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.2.4 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.2.3 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.2.2 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.2.1 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.2.0 spec/support/models/nyauth/reset_password_ability.rb
nyauth-0.1.0 spec/support/models/nyauth/reset_password_ability.rb