Sha256: afab80621d982ff88e0feb3c4c5c4001585837dbb1326dcfe640fb8e411f2c2f

Contents?: true

Size: 249 Bytes

Versions: 1

Compression:

Stored size: 249 Bytes

Contents

require 'spec_helper'

describe String do
  it "delegates to parser" do
    string = "1h30m"
    Timeparser.should_receive(:parse).with(string)
    string.parse_time
  end

  it "parses time" do
    "1h30m".parse_time.minutes.should eql 90
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timeparser-0.0.3 spec/lib/core_ext_spec.rb