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

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

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