[rspec-devel] redirect_to matcher bug

Tim Lucas t.lucas at toolmantim.com
Sun May 6 10:57:40 EDT 2007

On 07/05/2007, at 12:46 AM, aslak hellesoy wrote:

> On 5/6/07, Tim Lucas <t.lucas at toolmantim.com> wrote:
>> There's a bug in the redirect_to matcher in that it doesn't use
>> @request.host but instead hard codes "test.host". I'm trying to
>> trying to run the redirect_to_spec but it doesn't look like it can be
>> run by itself.
>> $ spec rspec_on_rails/spec/rails/matchers/redirect_to_spec.rb
>> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>> `gem_original_require': no such file to load -- ./rspec_on_rails/ 
>> spec/
>> rails/matchers/../../../../../../spec/spec_helper (LoadError)
>> ...
>> I'm guessing nobody's attempted to run these specs on their own? How
>> am I meant to add to and run the spec?

I'm guessing the answer to my question is: no and no. Use "rake  
pre_commit", read README for more info :)

>> The patch for the bugfix and spec is here: http://pastie.caboo.se/ 
>> 59357
> Thanks for the patch. Please make an issue at Rubyforge so we only
> have one place to go for patches.

will do.

-- tim

More information about the rspec-devel mailing list