[rspec-users] When is spec_helper.rb actually executed?

Scott Taylor mailing_lists at railsnewbie.com
Wed Oct 8 18:35:06 EDT 2008


On Oct 8, 2008, at 6:26 PM, Wes Gamble wrote:

> I'm trying to debug what I suspect is a case where spec_helper.rb is  
> not
> being executed.
>
> I put a puts statement inside the Spec::Runner.configure do |config|
> block, and I can't ever see the printout.
>
> When does spec_helper.rb get run during rspec operation?
>

What does your spec_helper.rb contain?

AFAIK, it gets executed before anything else - usually it contains  
Spec::Runner.configure { .. }

> Thanks,
> Wes
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list