summaryrefslogtreecommitdiff
path: root/spec/ruby/library/date/year_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/date/year_spec.rb')
-rw-r--r--spec/ruby/library/date/year_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/ruby/library/date/year_spec.rb b/spec/ruby/library/date/year_spec.rb
index cca95dbe2a..4720ddcd9a 100644
--- a/spec/ruby/library/date/year_spec.rb
+++ b/spec/ruby/library/date/year_spec.rb
@@ -2,5 +2,8 @@ require File.expand_path('../../../spec_helper', __FILE__)
require 'date'
describe "Date#year" do
- it "needs to be reviewed for spec completeness"
+ it "returns the year" do
+ y = Date.new(2000, 7, 1).year
+ y.should == 2000
+ end
end