Sha256: 754a3a0005dcd4730088b99566e60df81f0ef38150c8660ac6b85068bf32a7e5

Contents?: true

Size: 291 Bytes

Versions: 32

Compression:

Stored size: 291 Bytes

Contents

require 'spec_helper'

describe 'on initialization' do
  let(:example) { BasicTwoStateMachinesExample.new }

  it 'should be in the initial state' do
    expect(example.aasm(:search).current_state).to eql :initialised
    expect(example.aasm(:sync).current_state).to eql :unsynced
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

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