p8-redirect 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/redirect_app +1 -1
- data/lib/redirect.rb +1 -1
- metadata +1 -1
data/bin/redirect_app
CHANGED
@@ -37,7 +37,7 @@ class Test::Unit::TestCase
|
|
37
37
|
def assert_redirects(from, to)
|
38
38
|
res = Rack::MockRequest.new(APP[:redirect_app]).get(from)
|
39
39
|
res.headers.should == { 'Location' => to, 'Content-Type' => 'text/html' }
|
40
|
-
res.body.should == "Redirecting to:
|
40
|
+
res.body.should == "Redirecting to: \#{to}"
|
41
41
|
end
|
42
42
|
|
43
43
|
end
|
data/lib/redirect.rb
CHANGED