Sha256: 4c4edf1f72c4d77f7a55e6294aa57e00a5df4bd8b9ae19f3cc2f406cf6c710f9
Contents?: true
Size: 495 Bytes
Versions: 8
Compression:
Stored size: 495 Bytes
Contents
class ResponseCodeChecker < Checker # checks the given responses status code against the one in the expectation and returns result object def check result = Result.new(@testcase, @response) if not @testcase.response_expectation['status_code'].to_s == @response.code.to_s result.succeeded = false result.error_message = " expected response code --#{@testcase.response_expectation['status_code']}--\n got response code --#{@response.code}--" end result end end
Version data entries
8 entries across 8 versions & 1 rubygems