Sha256: ec9086fef4dec8bb539c944decec5867ee7ec03e295b17e8a1e1fe7042106e14

Contents?: true

Size: 554 Bytes

Versions: 3

Compression:

Stored size: 554 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_context 'persistable model' do
  include_context 'model with class methods'

  describe 'instance methods' do
    subject(:instance) { model_klass.new }

    include_context 'instance with instance methods'

    describe '#save' do
      subject(:save) do
        instance.email = DEFAULT_EMAIL
        instance.password = DEFAULT_PASSWORD
        instance.password_confirmation = DEFAULT_PASSWORD
        instance.save
      end

      it 'does not raise an error' do
        save
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
omniauth-identity-3.0.9 spec/support/shared_contexts/persistable_model.rb
omniauth-identity-3.0.8 spec/support/shared_contexts/persistable_model.rb
omniauth-identity-3.0.7 spec/support/shared_contexts/persistable_model.rb