Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added test for deprecation method

  • Loading branch information...
commit efc4a7d3c8d3b6ee2a97e425866a7c27accc57d0 1 parent 6c3ff73
@jimweirich authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 test/lib/application_test.rb
View
11 test/lib/application_test.rb
@@ -349,6 +349,17 @@ def test_run_with_bad_options
ensure
ARGV.clear
end
+
+ def test_deprecation_message
+ in_environment do
+ error_messages = capture_stderr do
+ @app.deprecate("a", "b", "c")
+ end
+ assert_match(/'a' is deprecated/i, error_messages)
+ assert_match(/use 'b' instead/i, error_messages)
+ assert_match(/at c$/i, error_messages)
+ end
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.