Last active
December 11, 2015 03:49
-
-
Save shepmaster/4540658 to your computer and use it in GitHub Desktop.
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
describe 'match_time' do | |
(0..12).each do |h| | |
(0..59).each do |m| | |
it "should match #{h}:#{m} AM" do | |
match_time("%02i:%02i AM" % [h, m]).should_not be_nil | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment