summaryrefslogtreecommitdiff
path: root/spec/ruby/core/time/friday_spec.rb
blob: d38a261080bba5a497c4e4bdd1d5aa1c86314169 (plain)
1
2
3
4
5
6
7
8
9
10
11
require File.expand_path('../../../spec_helper', __FILE__)

describe "Time#friday?" do
  it "returns true if time represents Friday" do
    Time.local(2000, 1, 7).friday?.should == true
  end

  it "returns false if time doesn't represent Friday" do
    Time.local(2000, 1, 1).friday?.should == false
  end
end