On 18 Jan 2009, at 13:29, Ed Keith wrote:


My problem is that I do not like the following line in Ruby :

   system spec spec1.rb

it looks very inefficient, so I am looking for a better solution.

I think you might be able to just do this instead:

    load 'spec1.rb'

Does that look any better?

Failing that, have a look at the source code for the 'spec' command - it's all Ruby - there will be something in there you can plagiarise, I'm sure.

Matt Wynne
http://blog.mattwynne.net
http://www.songkick.com

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to