[rspec-users] story runner not running on build machine

Zach Dennis zach.dennis at gmail.com
Thu Aug 28 08:53:31 EDT 2008

On Thu, Aug 28, 2008 at 3:39 AM, aa aa <lists at ruby-forum.com> wrote:
> Ben Mabey wrote:
>> aa aa wrote:
>>> what is going on here?!
>>> It doesn't seem to be loading the plugin does it?
>> Please post a runner file, your spec helper, and a steps file.
>> -Ben
> odd, i changed the line in the all.rb from
>>Dir[File.expand_path("#{dir}/**/*.rb")].uniq.each do |file|
> to
>>Dir[File.expand_path("#{dir}/*.rb")].uniq.each do |file|
> and it worked....

That will only load .rb files that are in the same directory as the
all.rb file. So it won't load things like stories/foo/thingy.rb or
stories/foo/blah/thingy.rb. My guess is that is not what you want.This
is assuming your all.rb file looked like:

dir = File.dirname(__FILE__)
Dir[File.expand_path("#{dir}/**/*.rb")].uniq.each do |file|
  require file

Zach Dennis

More information about the rspec-users mailing list