summaryrefslogtreecommitdiff
path: root/spec/ruby/core/time/monday_spec.rb
blob: c5c43a5c3ef2467cbe88650d60a28a6cb3d56ff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
require_relative '../../spec_helper'

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

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