Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't pollute Object with test helper methods
Defining methods on toplevel changes the behavior of all Ruby Objects which of course includes the test target, and thus that will spoil the meaning of the whole testing. This is something that testing libraries or helpers should never do. These methods are just called from testing methods, so we can just move them under AR::TestCase as its instance methods.
- Loading branch information
Showing
2 changed files
with
85 additions
and
85 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