Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed tests for show_tasks changes.

  • Loading branch information...
commit d8090fd1c830042ba22d4cfad172fc0ca4e7a152 1 parent e98aa21
@jimweirich authored
View
2  lib/rake/application.rb
@@ -178,7 +178,7 @@ def display_tasks_and_comments
displayable_tasks = tasks.select { |t|
t.comment && t.name =~ options.show_task_pattern
}
- if options.show_task == :describe
+ if options.show_tasks == :describe
displayable_tasks.each do |t|
puts "#{name} #{t.name_with_args}"
t.full_comment.split("\n").each do |line|
View
1  test/functional/session_based_tests.rb
@@ -84,7 +84,6 @@ def test_long_description
in_environment("PWD" => "test/data/multidesc") do
rake "--describe"
end
- puts @out
assert_match %r{^rake a\n *A / A2 *$}m, @out
assert_match %r{^rake b\n *B *$}m, @out
assert_match %r{^rake d\n *x{80}}m, @out
View
2  test/lib/application_test.rb
@@ -100,7 +100,7 @@ def test_display_tasks_with_long_comments_to_a_non_tty_with_columns_set_truncate
end
def test_describe_tasks
- @app.options.show_task = :describe
+ @app.options.show_tasks = :describe
@app.options.show_task_pattern = //
@app.last_description = "COMMENT"
@app.define_task(Rake::Task, "t")
Please sign in to comment.
Something went wrong with that request. Please try again.