Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly deprecate #pending from AS::TestCase
Check #4575 (comment).
- Loading branch information
1 parent
4913984
commit 92da512
Showing
3 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
# Some code from jeremymcanally's "pending" | ||
# https://github.com/jeremymcanally/pending/tree/master | ||
require 'active_support/deprecation' | ||
|
||
module ActiveSupport | ||
module Testing | ||
module Pending | ||
|
||
unless defined?(Spec) | ||
|
||
@@pending_cases = [] | ||
@@at_exit = false | ||
|
||
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) | ||
end | ||
end | ||
|
||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters