-
-
Notifications
You must be signed in to change notification settings - Fork 921
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'spec/mspec/' changes from 7a19a59..f509c1a
f509c1a Deprecate extended_on. 3c64ffd Avoid splat calls to fail_with as it could produce a confusing ArgumentError 69d0e88 failure_message and negative_failure_message are expected to return 2-elements arrays 6f47969 Show more details when have_data fails. 8674ed6 Refactor RaiseErrorMatcher messages in simpler and more expressive code eeeea9f Simpler logic in RaiseErrorMatcher#negative_failure_message 203ec67 Avoid String#<< for Opal 24a80c4 Normalize home_directory for Windows f90efa0 Merge pull request #15 from ruby/vais/windows 6c110e4 Fix ruby executable path resolution on Windows 8c04853 Check subprocess leaks in the LeakChecker 5b1f519 Deprecate new_hash and hash_class. 46f800d Deprecate raise_exception in favor of raise_error d87f746 Introduce a simple deprecatation mechanism in MSpec git-subtree-dir: spec/mspec git-subtree-split: f509c1a418e4a2794f04b606504a04f947008cbc
- Loading branch information
Showing
13 changed files
with
77 additions
and
18 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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module MSpec | ||
def self.deprecate(what, replacement) | ||
$stderr.puts "\n#{what} is deprecated, use #{replacement} instead." | ||
user_caller = caller.find { |line| !line.include?('lib/mspec') } | ||
$stderr.puts "from #{user_caller}" | ||
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