lib/respec/app.rb in respec-0.4.0 vs lib/respec/app.rb in respec-0.4.1
- old
+ new
@@ -111,9 +111,14 @@
end
else
args << '--example' << arg.gsub(/[$]/, '\\\\\\0')
end
end
+
+ # Since we append our formatter as a file to run, rspec won't fall back to
+ # using 'spec' by default. Add it explicitly here.
+ files << 'spec' if files.empty?
+
# If we selected individual failures to rerun, don't give the files to
# rspec, as those files will be run in their entirety.
@generated_args = args
@generated_args.concat(files) unless @selected_failures
end