Sha256: 8f35479716457c999ea138f2d3c7c770ad4984bb664d2a59535aaa498686bc98

Contents?: true

Size: 253 Bytes

Versions: 6

Compression:

Stored size: 253 Bytes

Contents

require(File.join(File.dirname(__FILE__), '..', 'date_spec_helper'))

describe "Date.today" do
  it "should be today's date" do
    t = Time.now
    d = Date.today
    d.year.should == t.year
    d.mon.should == t.mon
    d.day.should == t.day
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
third_base-1.3.0 spec/date/today_spec.rb
third_base-1.2.0 spec/date/today_spec.rb
third_base-1.1.1 spec/date/today_spec.rb
third_base-1.1.0 spec/date/today_spec.rb
third_base-1.0.0 spec/date/today_spec.rb
third_base-1.0.1 spec/date/today_spec.rb