module Apipie::ResponseValidationHelpers
instrument the 'process' method in ActionController::TestCase to enable response validation
Public Instance Methods
process(*args)
click to toggle source
Calls superclass method
# File lib/apipie/rspec/response_validation_helper.rb, line 164 def process(*args) result = super(*args) validate_response if @is_response_validation_on result end
validate_response()
click to toggle source
# File lib/apipie/rspec/response_validation_helper.rb, line 171 def validate_response controller.send(:validate_response_and_abort_with_info_if_errors) end