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