Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cosmetic change to test for #follow

  • Loading branch information...
commit 596a972d3d80d4e02ad74650f4e99cb55ec626f4 1 parent cf32f2e
@sr sr authored rtomayko committed
Showing with 3 additions and 6 deletions.
  1. +3 −6 test/test_test.rb
View
9 test/test_test.rb
@@ -18,17 +18,14 @@ def request_params
mock_app {
%w[get head post put delete].each { |verb|
send(verb, '/') do
+ redirect '/redirected' if params[:redirect]
env.update('test.body' => request.body.read)
env.update('test.params' => params.to_yaml)
env.to_yaml
end
}
- get '/redirect_me' do
- redirect '/there'
- end
-
- get '/there' do
+ get '/redirected' do
"you've been redirected"
end
}
@@ -76,7 +73,7 @@ def request_params
end
it 'follows redirect' do
- get '/redirect_me'
+ get '/', :redirect => true
follow!
assert_equal "you've been redirected", body
end
Please sign in to comment.
Something went wrong with that request. Please try again.