diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-17 14:24:33 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-18 21:34:00 -0200 |
commit | 92da512125fb5aeb7d7418c80cdd0ead5aaf30bb (patch) | |
tree | b1f7741ec097c58ae2dfa8ca8c06d6252fec0562 /activesupport/test | |
parent | 4913984122c436a74179e6d0aa4b5ec0ca2ebe59 (diff) | |
download | rails-92da512125fb5aeb7d7418c80cdd0ead5aaf30bb.tar.gz rails-92da512125fb5aeb7d7418c80cdd0ead5aaf30bb.tar.bz2 rails-92da512125fb5aeb7d7418c80cdd0ead5aaf30bb.zip |
Properly deprecate #pending from AS::TestCase
Check https://github.com/rails/rails/pull/4575#issuecomment-5765575.
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/test_case_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/test_case_test.rb b/activesupport/test/test_case_test.rb index 64426d02e9..dfe9f3c11c 100644 --- a/activesupport/test/test_case_test.rb +++ b/activesupport/test/test_case_test.rb @@ -108,5 +108,11 @@ module ActiveSupport test = tc.new test_name assert_raises(Interrupt) { test.run fr } end + + def test_pending_deprecation + assert_deprecated do + pending "should use #skip instead" + end + end end end |