blob: 3dc040fabebda10e75dd9c8e13f812ea3524aaaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require_relative '../../spec_helper'
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
|