aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-11-18 21:34:32 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-11-18 21:34:32 -0200
commite21579f1d11983ab3296e530afafd836d6e29b1f (patch)
treeb1f7741ec097c58ae2dfa8ca8c06d6252fec0562 /activesupport/test
parenta739340d3c9e66814429af6f3f410c01ff86810a (diff)
parent92da512125fb5aeb7d7418c80cdd0ead5aaf30bb (diff)
downloadrails-e21579f1d11983ab3296e530afafd836d6e29b1f.tar.gz
rails-e21579f1d11983ab3296e530afafd836d6e29b1f.tar.bz2
rails-e21579f1d11983ab3296e530afafd836d6e29b1f.zip
Merge branch 'deprecate-pending'
Properly deprecate #pending from AS::TestCase. This has been previously removed from master, and is now back with a deprecation instead, to avoid people having tests breaking when upgrading an app. Please check #4575 for more background.
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/test_case_test.rb6
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