Sha256: 34b704b8b41c986962e8427eead6984c8d43d250d50aacd799dd0073776e3a17

Contents?: true

Size: 798 Bytes

Versions: 12

Compression:

Stored size: 798 Bytes

Contents

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

  before :each do
  end

  after :each do
  end

  context do

    model_attributes = {
      transitor_visitor_id:   SecureRandom.uuid,
      transitor_visitor_type: 'Unidom::Action::TransitorVisitor::Mock',
      transitor_party_id:     SecureRandom.uuid,
      transitor_party_type:   'Unidom::Action::TransitorParty::Mock',
      subject_id:             SecureRandom.uuid,
      subject_type:           'Unidom::Action::Subject::Mock',
      reason_id:              SecureRandom.uuid,
      from_state:             'C',
      thru_state:             'A'
    }

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

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

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