Skip to content

Commit 5f46029

Browse files
author
Rick Hull
committed
month 0 no longer accepted
1 parent 5878eed commit 5f46029

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/date.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@
4747
end
4848

4949
it "looks up month names by month number" do
50-
# 0 is not valid but the function will accept it
51-
expect(D.month_name 0).must_equal 'December'
50+
expect { D.month_name 0 }.must_raise
5251
expect(D.month_name 1).must_equal 'January'
5352
expect(D.month_name 12).must_equal 'December'
5453
expect { D.month_name 13 }.must_raise

0 commit comments

Comments
 (0)