blob: 369b943419017ac59c5e200502e8dea5f6720d31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require File.expand_path('../../../spec_helper', __FILE__)
require 'date'
describe "Date#friday?" do
it "should be friday" do
Date.new(2000, 1, 7).friday?.should be_true
end
it "should not be friday" do
Date.new(2000, 1, 8).friday?.should be_false
end
end
|