Sha256: aec57f0d27170c53c316955c3cbfcccdee3e64797e981f2c49d5e9c9699890c3

Contents?: true

Size: 558 Bytes

Versions: 6

Compression:

Stored size: 558 Bytes

Contents

require 'support/shared-examples/dimorphic'
require 'support/shared-examples/deletable'
require 'support/shared-examples/undestroyable'
require 'support/shared-examples/capitalizable'
require 'support/shared-examples/stripable'

RSpec.describe User, type: :model do
  let(:user) { create(:user) }
  subject { user }

  context 'shared-example' do
    it_behaves_like "undestroyable"
    it_behaves_like "deletable"
    it_behaves_like "dimorphic"
    it_behaves_like "capitalizable", ['name']
    it_behaves_like "stripable", ['name', 'last_name']
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
commons_yellowme-0.16.0 spec/commons/shared-examples/user_spec.rb
commons_yellowme-0.15.0 spec/commons/shared-examples/user_spec.rb
commons_yellowme-0.12.0 spec/commons/shared-examples/user_spec.rb
commons_yellowme-0.11.3 spec/commons/shared-examples/user_spec.rb
commons_yellowme-0.11.2 spec/commons/shared-examples/user_spec.rb
commons_yellowme-0.11.1 spec/commons/shared-examples/user_spec.rb