aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/core/time/wednesday_spec.rb
blob: 8e836e3e02aa341210e8e4d6cc82461e94e0301f (plain)
1
2
3
4
5
6
7
8
9
10
11
require File.expand_path('../../../spec_helper', __FILE__)

describe "Time#wednesday?" do
  it "returns true if time represents Wednesday" do
    Time.local(2000, 1, 5).wednesday?.should == true
  end

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