I have a bunch on non-rails stories, and I want to run them all with either a 
rake task or a script.

I tried the all.rb approach from rails, but is doesn't seem to work.

I do this basically...

 dir = File.dirname(__FILE__)
  tests= []
  %w(story1 story2 story3).each do |f|
    tests << File.join(dir, f) + ".rb"
  end

  puts "Testing: #{tests.join(',')}"

  tests.each do |file|
    require file
  end

Should this work?

Some of the stories run OK, but some seem to not be setup properly, they run fine if run individually from the command line as...

> ruby story2.rb


--
Jim Morris, http://blog.wolfman.com
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to