Class: CallCenter::Test::MiniTest::DSL::ItShouldNotFlow

Inherits:
ItShouldFlow show all
Defined in:
lib/call_center/test/minitest/dsl.rb

Instance Method Summary collapse

Methods inherited from ItShouldFlow

#after_transition_methods, #expects, #from, #if, #if_and_unless_conditions, #initialize, #on, #restubs, #stubs, #to, #unless, #verify

Constructor Details

This class inherits a constructor from CallCenter::Test::MiniTest::DSL::ItShouldFlow

Instance Method Details

#send_event(subject, event) ⇒ Object


171
172
173
# File 'lib/call_center/test/minitest/dsl.rb', line 171

def send_event(subject, event)
  subject.send(:"#{event}")
end

#verify_send(subject, event, state_field, to) ⇒ Object


175
176
177
# File 'lib/call_center/test/minitest/dsl.rb', line 175

def verify_send(subject, event, state_field, to)
  send_event(subject, event).wont_equal(true)
end