Permalink
Browse files

Cosmetic change to test for #follow

  • Loading branch information...
1 parent cf32f2e commit 596a972d3d80d4e02ad74650f4e99cb55ec626f4 @sr sr committed with rtomayko Feb 22, 2009
Showing with 3 additions and 6 deletions.
  1. +3 −6 test/test_test.rb
View
@@ -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

0 comments on commit 596a972

Please sign in to comment.