# Follow\_redirect! aborts rake during integration tests

**URL:** <https://www.ruby-forum.com/t/follow-redirect-aborts-rake-during-integration-tests/93498>\
**Category:** Rails\
**Created:** [April 4, 2006, 12:35am UTC](https://www.ruby-forum.com/t/follow-redirect-aborts-rake-during-integration-tests/93498 "2006-04-04T00:35:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojombo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/48db29/32.png) [@mojombo](https://www.ruby-forum.com/u/mojombo)\
**Post date:** [April 4, 2006, 12:35am UTC](https://www.ruby-forum.com/t/follow-redirect-aborts-rake-during-integration-tests/93498/1 "2006-04-04T00:35:32Z")

</div>

I’m running integration tests on Rails 1.1/Ruby 1.8.4/Windows XP and  
have  
found that any call to follow\_redirect! (directly or through  
[get|post]\_via\_redirect) causes rake to abort (see command line output  
below). Has anyone else seen this error, or know what might be the  
trouble?  
Thanks!

Tom

C:\dev\h2h\>rake test:integration --trace  
(in C:/dev/h2h)  
\*\* Invoke test:integration (first\_time)  
\*\* Invoke db:test:prepare (first\_time)  
\*\* Invoke environment (first\_time)  
\*\* Execute environment  
\*\* Execute db:test:prepare  
\*\* Invoke db:test:clone (first\_time)  
\*\* Invoke db:schema:dump (first\_time)  
\*\* Invoke environment  
\*\* Execute db:schema:dump  
\*\* Execute db:test:clone  
\*\* Invoke db:schema:load (first\_time)  
\*\* Invoke environment  
\*\* Execute db:schema:load  
\*\* Execute test:integration  
c:/ruby/bin/ruby -Ilib;test  
“c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/  
rake\_test\_loader.rb” “test/integration/stories\_test.rb”  
Loaded suite  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake\_test\_loader

Started  
rake aborted!  
Command failed with status (1): [c:/ruby/bin/ruby -Ilib;test  
"c:/ruby/lib/r…]  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:722:in `sh' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:729:in `sh’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `sh' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:807:in `sh’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:747:in `ruby' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `ruby’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:807:in `ruby' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/testtask.rb:117:in `define’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:831:in `verbose' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/testtask.rb:102:in `define’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke' c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7  
c:/ruby/bin/rake.bat:25

* * *

## Tom W.

View this message in context:  
[http://www.nabble.com/follow\_redirect!-aborts-rake-during-integration-tests-t1389918.html#a3735240](http://www.nabble.com/follow_redirect%21-aborts-rake-during-integration-tests-t1389918.html#a3735240)  
Sent from the RubyOnRails Users forum at [Nabble.com](http://Nabble.com).
