blob: 47b09c9a07e0b54a9075a7ad82e12f064833b5ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require File.expand_path('../../../spec_helper', __FILE__)
describe "Time#monday?" do
it "returns true if time represents Monday" do
Time.local(2000, 1, 3).monday?.should == true
end
it "returns false if time doesn't represent Monday" do
Time.local(2000, 1, 1).monday?.should == false
end
end
|