lib/test_queue/runner/rspec.rb in test-queue-0.5.0 vs lib/test_queue/runner/rspec.rb in test-queue-0.6.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'test_queue/runner' +require_relative '../runner' require 'rspec/core' case ::RSpec::Core::Version::STRING.to_i when 2 require_relative 'rspec2' @@ -33,9 +33,14 @@ class RSpec < TestFramework def all_suite_files options = ::RSpec::Core::ConfigurationOptions.new(ARGV) options.parse_options if options.respond_to?(:parse_options) options.configure(::RSpec.configuration) + + if ::RSpec.configuration.instance_variable_defined?(:@files_or_directories_to_run) && + ::RSpec.configuration.instance_variable_get(:@files_or_directories_to_run).empty? + ::RSpec.configuration.instance_variable_set(:@files_or_directories_to_run, [::RSpec.configuration.default_path]) + end ::RSpec.configuration.files_to_run.uniq end def suites_from_file(path)