Skip to content

Instantly share code, notes, and snippets.

@marlosirapuan
Created July 25, 2019 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marlosirapuan/2eac35c79144e12c2d5878bb365d31db to your computer and use it in GitHub Desktop.
Save marlosirapuan/2eac35c79144e12c2d5878bb365d31db to your computer and use it in GitHub Desktop.
Minitest hooks
class ActiveSupport::TestCase
def self.prepare
# Add code that needs to be executed before test suite start
end
prepare
def setup
# Add code that need to be executed before each test
end
def teardown
# Add code that need to be executed after each test
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment