mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rake/*: Updated to rake 0.9.5
* test/rake/*: ditto. * NEWS: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
40bae2f67c
commit
d1d4490a57
18 changed files with 181 additions and 41 deletions
|
@ -309,6 +309,37 @@ class TestRakeApplication < Rake::TestCase
|
|||
assert @app.options.trace
|
||||
end
|
||||
|
||||
def test_handle_options_trace_default_is_stderr
|
||||
ARGV.clear
|
||||
ARGV << "--trace"
|
||||
|
||||
@app.handle_options
|
||||
|
||||
assert_equal STDERR, @app.options.trace_output
|
||||
assert @app.options.trace
|
||||
end
|
||||
|
||||
def test_handle_options_trace_overrides_to_stdout
|
||||
ARGV.clear
|
||||
ARGV << "--trace=stdout"
|
||||
|
||||
@app.handle_options
|
||||
|
||||
assert_equal STDOUT, @app.options.trace_output
|
||||
assert @app.options.trace
|
||||
end
|
||||
|
||||
def test_handle_options_trace_does_not_eat_following_task_names
|
||||
assert !@app.options.trace
|
||||
|
||||
ARGV.clear
|
||||
ARGV << "--trace" << "sometask"
|
||||
|
||||
@app.handle_options
|
||||
assert ARGV.include?("sometask")
|
||||
assert @app.options.trace
|
||||
end
|
||||
|
||||
def test_good_run
|
||||
ran = false
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue