Sha256: c390514cef6e2c0b8ad769b25b8f110e82fe5ba06569695f353cac4f736f229a

Contents?: true

Size: 272 Bytes

Versions: 2

Compression:

Stored size: 272 Bytes

Contents

require 'rext/date'

describe Date do
  describe "helpers" do
    
    describe "#to_time" do
      it "should convert to a Time instance" do
        event = Date.parse('may 25th 1987')
        event.to_time.should be_an_instance_of(Time)
      end
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
visionmedia-rext-0.0.2 spec/date_spec.rb
visionmedia-rext-0.0.3 spec/date_spec.rb