Skip to content

Commit

Permalink
add threads to some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
quix committed May 23, 2011
1 parent 20b5d8b commit 65825ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_rake_task_argument_parsing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/test_rake_win32.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 65825ba

Please sign in to comment.