-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix supports_helper stub_supports to handle unsupported_reason
We are now getting away from supports?(:supported_feature). Instead we are calling unsupported_reason(:supported_feature) It cuts down on our calls into the supports_feature_mixin. Before ====== When using stub_supports, unsupported_reason(:supported_feature) was not stubbed (and unpredictable) supports? was stubbed After ===== We are stubbing at the feature definition layer all code in unsupported_reason is run/tested all code in supports? is run/tested This puts more code under test and allows flexibility for refactoring Notes ===== Wasn't thrilled about kwarg supports, but a few tests still use that. I've changed them all but it wasn't too much work to keep this working so we can backport with minimal fuss This code better tests our features that defer to another feature
- Loading branch information
Showing
4 changed files
with
58 additions
and
22 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