Sha256: 4a4d101a7f1629cd0412f699180655c4eb0f1fb45105820fd183496fc628bcbb

Contents?: true

Size: 546 Bytes

Versions: 32

Compression:

Stored size: 546 Bytes

Contents

require 'spec_helper'

describe "edge cases" do
  describe "for classes with multiple state machines" do
    it "allows accessing a multiple state machine class without state machine name" do
      # it's like starting to define a new state machine within the
      # requested class
      expect(SimpleMultipleExample.aasm.states.map(&:name)).to be_empty
    end

    it "do not know yet" do
      example = ComplexExampleMultiple.new
      expect { example.aasm.states.inspect }.to raise_error(AASM::UnknownStateMachineError)
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
aasm-5.3.1 spec/unit/edge_cases_spec.rb
aasm-5.3.0 spec/unit/edge_cases_spec.rb
aasm-5.2.0 spec/unit/edge_cases_spec.rb
aasm-5.1.1 spec/unit/edge_cases_spec.rb
aasm-5.1.0 spec/unit/edge_cases_spec.rb
aasm-5.0.8 spec/unit/edge_cases_spec.rb
aasm-5.0.7 spec/unit/edge_cases_spec.rb
aasm-5.0.6 spec/unit/edge_cases_spec.rb
aasm-5.0.5 spec/unit/edge_cases_spec.rb
aasm-5.0.4 spec/unit/edge_cases_spec.rb
aasm-5.0.3 spec/unit/edge_cases_spec.rb
aasm-5.0.2 spec/unit/edge_cases_spec.rb
aasm-5.0.1 spec/unit/edge_cases_spec.rb
aasm-5.0.0 spec/unit/edge_cases_spec.rb
aasm-4.12.3 spec/unit/edge_cases_spec.rb
aasm-4.12.2 spec/unit/edge_cases_spec.rb
aasm-4.12.1 spec/unit/edge_cases_spec.rb
aasm-4.12.0 spec/unit/edge_cases_spec.rb
aasm-4.11.1 spec/unit/edge_cases_spec.rb
aasm-4.11.0 spec/unit/edge_cases_spec.rb