lib/mini_apivore/validation.rb in mini-apivore-0.1.8 vs lib/mini_apivore/validation.rb in mini-apivore-0.2.0

- old
+ new

@@ -19,15 +19,17 @@ def swagger_checker; self.class.swagger_checker end def check_route( verb, path, expected_response_code, params = {} ) prepare_action_env( verb, path, expected_response_code, params ) assert( match?, <<FAIL ) - Failed at: #{Thread.current.backtrace[2]}\n - Failure message: #{failure_message},\n - fullpath: #{full_path}, \n - params causing failure:#{params} + Failed at: #{prepare_error_backtrace}\n + Failure message: #{failure_message},\n + fullpath: #{full_path}, \n + params causing failure:#{params} FAIL end + + def match? #pre_checks check_request_path \ No newline at end of file