We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5878eed commit 5f46029Copy full SHA for 5f46029
test/date.rb
@@ -47,8 +47,7 @@
47
end
48
49
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'
+ expect { D.month_name 0 }.must_raise
52
expect(D.month_name 1).must_equal 'January'
53
expect(D.month_name 12).must_equal 'December'
54
expect { D.month_name 13 }.must_raise
0 commit comments