[Rspec-devel] Using rspec with rails plugins, engines, etc.

aslak hellesoy aslak.hellesoy at gmail.com
Tue Aug 29 09:08:00 EDT 2006


On 8/29/06, Jay Levitt <lists-rspec at shopwatch.org> wrote:
> Daniel Siemssen wrote:
> > Patch submitted (see tracker).
>
> Thanks! That solves the duplicate environment, but I still get the drb
> backtrace lines:
>
> $ script/rails_spec vendor/plugins/hark/spec/*
>
> ..F
>
> 1)
> Spec::Api::ExpectationNotMetError in 'Vlad the valid user new spec'
> testing
> ./vendor/plugins/hark/spec/models/harkee_spec.rb:32:in `new spec'
> /cygdrive/c/dev/src/eclipse/hark/config/../vendor/plugins/rspec/lib/rspec_on_rails.rb:103:in
> `run'
> script/rails_spec_runner:26:in `run'
> /usr/lib/ruby/1.8/drb/drb.rb:1552:in `perform_without_block'
> /usr/lib/ruby/1.8/drb/drb.rb:1512:in `perform'
> /usr/lib/ruby/1.8/drb/drb.rb:1586:in `main_loop'
> /usr/lib/ruby/1.8/drb/drb.rb:1582:in `main_loop'
> /usr/lib/ruby/1.8/drb/drb.rb:1578:in `main_loop'
> /usr/lib/ruby/1.8/drb/drb.rb:1427:in `run'
> /usr/lib/ruby/1.8/drb/drb.rb:1424:in `run'
> /usr/lib/ruby/1.8/drb/drb.rb:1344:in `initialize'
> /usr/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'
> script/rails_spec_runner:47
>

This is now fixed on trunk, so you'll get backtraces like:

1)
Spec::Api::ExpectationNotMetError in 'Vlad the valid user new spec'
testing
./vendor/plugins/hark/spec/models/harkee_spec.rb:32:in `new spec'

By the way - 'Vlad the valid user new spec' reads kind of funny. Have
you tried to run your specs with '-d -f s' ?

It should read *well*

Aslak

> Finished in 0.187 seconds
>
> 4 specifications, 1 failure
>
> _______________________________________________
> Rspec-devel mailing list
> Rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>


More information about the Rspec-devel mailing list