Skip to content

Instantly share code, notes, and snippets.

@EdwardIII

EdwardIII/r.rb Secret

Created August 25, 2021 14:42
Show Gist options
  • Save EdwardIII/0a27e6e82f06ae350ed3d9085f5ed889 to your computer and use it in GitHub Desktop.
Save EdwardIII/0a27e6e82f06ae350ed3d9085f5ed889 to your computer and use it in GitHub Desktop.
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