Sha256: 1e93380a7017e853b072b09a94916c3e43334e657ae54786b07699531dc78222

Contents?: true

Size: 291 Bytes

Versions: 12

Compression:

Stored size: 291 Bytes

Contents

shared_examples 'Unidom::Action::Concerns::AsCaused' do |model_attributes|

  context do

    it_behaves_like 'belongs_to', model_attributes, :reason, Unidom::Action::Reason, { name: 'Some Reason' }

    it_behaves_like 'monomorphic scope', model_attributes, :caused_by, :reason

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
unidom-action-2.0 lib/rspec/models/unidom/action/concerns/as_caused_shared_examples.rb
unidom-action-1.17.18 lib/rspec/models/unidom/action/concerns/as_caused_shared_examples.rb
unidom-action-1.17.17 lib/rspec/models/unidom/action/concerns/as_caused_shared_examples.rb
unidom-action-1.17.16 lib/rspec/models/unidom/action/concerns/as_caused_shared_examples.rb
unidom-action-1.17.15 lib/rspec/models/unidom/action/concerns/as_caused_shared_examples.rb
unidom-action-1.17.13 lib/rspec/models/unidom/action/concerns/as_caused_shared_examples.rb
unidom-action-1.17.14 lib/rspec/models/unidom/action/concerns/as_caused_shared_examples.rb
unidom-action-1.17.12 lib/rspec/models/unidom/action/concerns/as_caused_shared_examples.rb
unidom-action-1.17.11 lib/rspec/models/unidom/action/concerns/as_caused_shared_examples.rb
unidom-action-1.17.10 lib/rspec/models/unidom/action/concerns/as_caused_shared_examples.rb
unidom-action-1.17.9 lib/rspec/models/unidom/action/concerns/as_caused_shared_examples.rb
unidom-action-1.17.8 lib/rspec/models/unidom/action/concerns/as_caused_shared_examples.rb