Class ActiveMatchers::Matchers::ResponseMatchers::NotFoundMatcher
In: lib/matchers/response_matchers.rb
Parent: Object

Methods

Public Instance methods

[Source]

    # File lib/matchers/response_matchers.rb, line 53
53:         def failure_message
54:           "Response should have had a status of 404 Not Found, but had #{@response.response_code}."
55:         end

[Source]

    # File lib/matchers/response_matchers.rb, line 48
48:         def matches?(response)
49:           @response = response
50:           response.response_code == 404
51:         end

[Source]

    # File lib/matchers/response_matchers.rb, line 57
57:         def negative_failure_message
58:           "Response should not have a status of 404 Not Found, but does."
59:         end

[Validate]