Created
June 17, 2017 14:10
-
-
Save ch1ago/7ee9dea460149828b73160f51c57bc13 to your computer and use it in GitHub Desktop.
Minitest for weekends
This file contains hidden or 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
#... | |
n = Time.now | |
if n.friday? || n.saturday? || n.sunday? | |
Minitest::Test.class_eval do | |
def result_code | |
failure && failure.result_code || '👍 ' | |
end | |
end | |
Minitest::Assertion.class_eval do | |
def result_code | |
'😰 ' | |
end | |
end | |
end | |
#... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment