Sha256: cce2cb8c52a6ce0a73b3e253411c680f99e1f484298ca2a6ab6d77b7c65b1f35

Contents?: true

Size: 262 Bytes

Versions: 8

Compression:

Stored size: 262 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

8 entries across 8 versions & 1 rubygems

Version Path
visionmedia-rext-0.0.4 spec/date_spec.rb
visionmedia-rext-0.0.5 spec/date_spec.rb
visionmedia-rext-0.0.6 spec/date_spec.rb
visionmedia-rext-0.0.7 spec/date_spec.rb
visionmedia-rext-0.0.8 spec/date_spec.rb
visionmedia-rext-0.1.0 spec/date_spec.rb
visionmedia-rext-0.2.1 spec/date_spec.rb
visionmedia-rext-0.2.2 spec/date_spec.rb