Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe 'match_time' do
- it 'should match times from 00:00 AM to 12:59 AM' do
- (0..12).each do |h|
- (0..59).each do |m|
- match_time("%02i:%02i AM" % [h, m]).should_not be_nil
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement