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-4.10.1 spec/unit/basic_two_state_machines_example_spec.rb
aasm-4.10.0 spec/unit/basic_two_state_machines_example_spec.rb
aasm-4.9.0 spec/unit/basic_two_state_machines_example_spec.rb
aasm-4.8.0 spec/unit/basic_two_state_machines_example_spec.rb
aasm-4.7.0 spec/unit/basic_two_state_machines_example_spec.rb
aasm-4.6.0 spec/unit/basic_two_state_machines_example_spec.rb
aasm-4.5.2 spec/unit/basic_two_state_machines_example_spec.rb
aasm-4.5.1 spec/unit/basic_two_state_machines_example_spec.rb
aasm-4.5.0 spec/unit/basic_two_state_machines_example_spec.rb
aasm-4.4.1 spec/unit/basic_two_state_machines_example_spec.rb
aasm-4.4.0 spec/unit/basic_two_state_machines_example_spec.rb
aasm-4.3.0 spec/unit/basic_two_state_machines_example_spec.rb