Sha256: f5168cca5a4fd7fa42ce0d9152dc9b90568793731647cc97d7f09cbed7c0cc92

Contents?: true

Size: 377 Bytes

Versions: 18

Compression:

Stored size: 377 Bytes

Contents

require 'spec_helper'

describe "multiple transitions that differ only by guard" do
  let(:job) { MultipleTransitionsThatDifferOnlyByGuard.new }

  it 'does not follow the first transition if its guard fails' do
    expect{job.go}.not_to raise_error
  end

  it 'executes the second transition\'s callbacks' do
    job.go
    expect(job.executed_second).to be_truthy
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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