test/helper.rb in shield-0.0.3 vs test/helper.rb in shield-0.0.4
- old
+ new
@@ -7,11 +7,11 @@
class Cutest::Scope
include Rack::Test::Methods
def assert_redirected_to(path)
- assert 302 == last_response.status
- assert path == last_response.headers["Location"]
+ assert_equal 302, last_response.status
+ assert_equal path, URI(last_response.headers["Location"]).path
end
def session
last_request.env["rack.session"]
end
\ No newline at end of file