Sha256: b3f299410bc7ac46e68a6120a2850d1989d696fd20c12fa677e81fc23631852e

Contents?: true

Size: 890 Bytes

Versions: 12

Compression:

Stored size: 890 Bytes

Contents

describe Unidom::Action::Acting, type: :model do

  before :each do
  end

  after :each do
  end

  context do

    model_attributes = {
      actor_visitor_id:   SecureRandom.uuid,
      actor_visitor_type: 'Unidom::Action::ActorVisitor::Mock',
      actor_party_id:     SecureRandom.uuid,
      actor_party_type:   'Unidom::Action::ActorParty::Mock',
      acted_id:           SecureRandom.uuid,
      acted_type:         'Unidom::Action::Acted::Mock',
      reason_id:          SecureRandom.uuid,
      action_code:        'C',
      from_value:         {},
      thru_value:         {}
    }

    it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
    it_behaves_like 'Unidom::Action::Concerns::AsCaused',       model_attributes

    it_behaves_like 'ProgneTapera::EnumCode', described_class.new(model_attributes), :action, Unidom::Action::Action

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

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