blob: 7abbdc92c0a96ca9cefba5d5455be8c68fd33aa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require_relative '../../spec_helper'
describe "Time#tuesday?" do
it "returns true if time represents Tuesday" do
Time.local(2000, 1, 4).tuesday?.should == true
end
it "returns false if time doesn't represent Tuesday" do
Time.local(2000, 1, 1).tuesday?.should == false
end
end
|