Created
December 30, 2019 19:15
-
-
Save saiury92/8e811aac1839e389a86676efd125ec05 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
require 'date' | |
require 'test/unit' | |
require 'test/unit/ui/console/testrunner' | |
class TestDate < Test::Unit::TestCase | |
def test_that_today_is_last_day_of_the_year | |
assert_equal Date.today, Date.civil(2019, 12, 31) | |
end | |
end | |
saiury_tests = TestDate.new('test_that_today_is_last_day_of_the_year') | |
Test::Unit::UI::Console::TestRunner.run(saiury_tests) | |
#=> 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications | |
# 100% passed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment