Module: RiotRails::ActionController::AssertsResponse

Defined in:
lib/riot/action_controller/context_macros/asserts_response.rb

Instance Method Summary collapse

Instance Method Details

#asserts_response(method_name = nil) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/riot/action_controller/context_macros/asserts_response.rb', line 5

def asserts_response(method_name=nil)
  if method_name
    asserts("response ##{method_name.to_s}") { response.send(method_name) }
  else
    asserts("response") { response }
  end
end