blob: 0e7b9e75063bd9a5be231871eaecd0d63c47c91e (
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).should.tuesday?
end
it "returns false if time doesn't represent Tuesday" do
Time.local(2000, 1, 1).should_not.tuesday?
end
end
|