Module: ResourceKit::Testing

Defined in:
lib/resource_kit/testing.rb,
lib/resource_kit/testing/have_action_matchers.rb,
lib/resource_kit/testing/action_handler_matchers.rb

Defined Under Namespace

Classes: ActionHandlerMatchers, HaveActionMatchers

Instance Method Summary collapse

Instance Method Details

#handle_response(action, &block) ⇒ Object



10
11
12
# File 'lib/resource_kit/testing.rb', line 10

def handle_response(action, &block)
  ActionHandlerMatchers.new(action)
end

#have_action(action) ⇒ Object



6
7
8
# File 'lib/resource_kit/testing.rb', line 6

def have_action(action)
  HaveActionMatchers.new(action)
end