| Class | ActiveMatchers::Matchers::ResponseMatchers::RedirectMatcher |
| In: |
lib/matchers/response_matchers.rb
|
| Parent: | Object |
# File lib/matchers/response_matchers.rb, line 85
85: def failure_message
86: case @action
87: when :what
88: "Response should have redirected, but didn't."
89: when :where
90: "Response should have redirected to #{@url}, but didn't."
91: end
92: end
# File lib/matchers/response_matchers.rb, line 67
67: def matches?(response)
68: @response = response
69: case @action
70: when :what
71: @response.redirect?
72: when :where
73: @response.redirect? && @response.redirect_url == @url
74: else
75: false
76: end
77: end