[rspec-users] rake task to run stories?

dchelimsky at gmail.com dchelimsky at gmail.com
Thu Jul 10 16:41:59 EDT 2008


On Jul 10, 2:59 pm, Jim Morris <m... at e4net.com> wrote:
> Hi,
>
> Shouldn't there be a rake task in rails to run the stories?

There is one, but it needs a tweak. It uses the ruby method instead of
sh, so you only get output if it fails. I'll get that fixed.

> and shouldn't rake spec run the stories as well?

No. Stories and specs are not the same thing. But, if you feel
differently, then you can always do this in your rake file:

task :spec => :stories

Cheers,
David

>
> Right now it seems I run all my specs via rake spec, but then have to run the stories by ruby
> stories/all.rb
>
> Am I missing something?
>
> BTW using stories for rails integration testing seems to work very nicely, thank you!
>
> --
> Jim Morris,http://blog.wolfman.com
> _______________________________________________
> rspec-users mailing list
> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users


More information about the rspec-users mailing list