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