aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/date/wday_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/date/wday_spec.rb')
-rw-r--r--spec/ruby/library/date/wday_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/ruby/library/date/wday_spec.rb b/spec/ruby/library/date/wday_spec.rb
index 1d40b0c96c..7303423123 100644
--- a/spec/ruby/library/date/wday_spec.rb
+++ b/spec/ruby/library/date/wday_spec.rb
@@ -2,5 +2,8 @@ require File.expand_path('../../../spec_helper', __FILE__)
require 'date'
describe "Date#wday" do
- it "needs to be reviewed for spec completeness"
+ it "returns the week day as a number starting with Sunday as 0" do
+ w = Date.new(2000, 1, 1).wday
+ w.should == 6
+ end
end