diff --git a/test/test_rake_task_argument_parsing.rb b/test/test_rake_task_argument_parsing.rb index e7826fd81..d5497525a 100644 --- a/test/test_rake_task_argument_parsing.rb +++ b/test/test_rake_task_argument_parsing.rb @@ -99,6 +99,7 @@ def test_no_rakeopt in_environment do ARGV << '--trace' app = Rake::Application.new + app.options.threads = Rake.application.options.threads app.init assert !app.options.silent end @@ -108,6 +109,7 @@ def test_rakeopt_with_blank_options in_environment("RAKEOPT" => "") do ARGV << '--trace' app = Rake::Application.new + app.options.threads = Rake.application.options.threads app.init assert !app.options.silent end @@ -116,6 +118,7 @@ def test_rakeopt_with_blank_options def test_rakeopt_with_silent_options in_environment("RAKEOPT" => "-s") do app = Rake::Application.new + app.options.threads = Rake.application.options.threads app.init assert app.options.silent end diff --git a/test/test_rake_win32.rb b/test/test_rake_win32.rb index d6ba0f201..15133aeff 100644 --- a/test/test_rake_win32.rb +++ b/test/test_rake_win32.rb @@ -72,6 +72,7 @@ def test_win32_backtrace_with_different_case ex.set_backtrace ['abc', 'rakefile'] rake = Rake::Application.new + rake.options.threads = Rake.application.options.threads rake.options.trace = true rake.instance_variable_set(:@rakefile, 'Rakefile')