-
-
Save EdwardIII/0a27e6e82f06ae350ed3d9085f5ed889 to your computer and use it in GitHub Desktop.
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
module VcrMinitestPlugin | |
def before_setup | |
p "MINITEST BABY" | |
super | |
# ...code to run before all test cases | |
end | |
def after_teardown | |
p "AFTER MINITEST BABY" | |
# ... code to run after all test cases | |
super | |
end | |
end | |
class ActiveSupport::TestCase | |
include VcrMinitestPlugin | |
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. | |
fixtures :all | |
# Add more helper methods to be used by all tests here... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment