blob: 73034231234c42475284a03bf3df87b8aa86d7ca (
plain)
1
2
3
4
5
6
7
8
9
|
require File.expand_path('../../../spec_helper', __FILE__)
require 'date'
describe "Date#wday" do
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
|