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

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

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