-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apparently Rails plugins in the original sense (i.e. installed into `vendor/plugins`) were deprecated in Rails v3 and removed entirely in Rails v4 [1]. The concept of Rails plugins still exists, but they are simply installed as gems. I decided to use Kernel#warn directly rather than Mocha::Deprecation.warning, because I was uncertain how the load path worked in the old-style Rails plugin. Fixes #403. [1]: https://guides.rubyonrails.org/4_0_release_notes.html#railties-deprecations
- Loading branch information
1 parent
a34e1a8
commit 2df7713
Showing
2 changed files
with
1 addition
and
12 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,3 +1 @@ | ||
# Mocha should no longer be loaded at plugin load time | ||
# You should explicitly load Mocha *after* Test::Unit or MiniTest have been loaded | ||
# e.g. by adding "require 'mocha'" at the bottom of test/test_helper.rb | ||
warn 'Mocha deprecation warning: The old-style Rails plugin will not be supported in future versions of Mocha.' |