Please sign in to comment.
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.
- Loading branch information...
Showing with 24 additions and 2 deletions.
|@@ -0,0 +1,14 @@|
|+ module Testing|
|+ module Pending|
|+ unless defined?(Spec)|
|+ def pending(description = "", &block)|
|+ ActiveSupport::Deprecation.warn("#pending is deprecated and will be removed in Rails 4.1, please use #skip instead.")|
|+ skip(description.blank? ? nil : description)|