lib/rspactor/runner.rb in lacomartincik-rspactor-0.3.3.1 vs lib/rspactor/runner.rb in lacomartincik-rspactor-0.3.3.2

- old
+ new

@@ -55,15 +55,13 @@ run_spec_command(File.join(dir, 'spec')) else patterns = ["test/unit/**/*_test.rb", "test/lib/**/*_test.rb", "test/functional/**/*_test.rb", "test/integration/**/*_test.rb"] - file_list = [] patterns.each do |pattern| - file_list = Dir[pattern] + run_test_command(Dir[pattern]) end - run_test_command(file_list) end end def run_spec_command(paths) paths = Array(paths) @@ -143,10 +141,10 @@ "spec" end end def test_runner - 'ruby' + "ruby -e 'ARGV.each{|f| load f}'" end def ruby_opts other = ENV['RUBYOPT'] ? " #{ENV['RUBYOPT']}" : '' other << ' -rcoral' if options[:coral] \ No newline at end of file