It doesn’t seem to be loading the plugin does it?
Are you using git for your project? If so, did you delete the .git
directories in rspec and rspec-rails? If not, the files in those
directories didn’t get committed to your project. To fix, remove the
rspec and rspec-rails directories from your project and commit it.
Then re-install, this time removing the .git directories, commit and
push.
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
end