Sha256: 54c5852ddcf9a2afe3c8eded572d01df6b4b5d0a476976b1c0926635a8c1bdca

Contents?: true

Size: 756 Bytes

Versions: 19

Compression:

Stored size: 756 Bytes

Contents

require 'aasm/minitest'

module Minitest::Expectations
  AASM.infect_an_assertion :assert_transitions_from, :must_transition_from, :do_not_flip
  AASM.infect_an_assertion :refute_transitions_from, :wont_transition_from, :do_not_flip

  AASM.infect_an_assertion :assert_transition_to_allowed, :must_allow_transition_to, :do_not_flip
  AASM.infect_an_assertion :refute_transition_to_allowed, :wont_allow_transition_to, :do_not_flip

  AASM.infect_an_assertion :assert_have_state, :must_have_state, :do_not_flip
  AASM.infect_an_assertion :refute_have_state, :wont_have_state, :do_not_flip

  AASM.infect_an_assertion :assert_event_allowed, :must_allow_event, :do_not_flip
  AASM.infect_an_assertion :refute_event_allowed, :wont_allow_event, :do_not_flip
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
aasm-5.5.0 lib/aasm/minitest_spec.rb
aasm-5.4.0 lib/aasm/minitest_spec.rb
aasm-5.3.1 lib/aasm/minitest_spec.rb
aasm-5.3.0 lib/aasm/minitest_spec.rb
aasm-5.2.0 lib/aasm/minitest_spec.rb
aasm-5.1.1 lib/aasm/minitest_spec.rb
aasm-5.1.0 lib/aasm/minitest_spec.rb
aasm-5.0.8 lib/aasm/minitest_spec.rb
aasm-5.0.7 lib/aasm/minitest_spec.rb
aasm-5.0.6 lib/aasm/minitest_spec.rb
aasm-5.0.5 lib/aasm/minitest_spec.rb
aasm-5.0.4 lib/aasm/minitest_spec.rb
aasm-5.0.3 lib/aasm/minitest_spec.rb
aasm-5.0.2 lib/aasm/minitest_spec.rb
aasm-5.0.1 lib/aasm/minitest_spec.rb
aasm-5.0.0 lib/aasm/minitest_spec.rb
aasm-4.12.3 lib/aasm/minitest_spec.rb
aasm-4.12.2 lib/aasm/minitest_spec.rb
aasm-4.12.1 lib/aasm/minitest_spec.rb