diff options
Diffstat (limited to 'spec/ruby/library/date/month_spec.rb')
| -rw-r--r-- | spec/ruby/library/date/month_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/library/date/month_spec.rb b/spec/ruby/library/date/month_spec.rb new file mode 100644 index 0000000000..e040f9a94c --- /dev/null +++ b/spec/ruby/library/date/month_spec.rb @@ -0,0 +1,9 @@ +require_relative '../../spec_helper' +require 'date' + +describe "Date#month" do + it "returns the month" do + m = Date.new(2000, 7, 1).month + m.should == 7 + end +end |
