Sha256: f84e89350bac5084c50256da71d5a122d048346f754249e997c19a2ad8136a72

Contents?: true

Size: 281 Bytes

Versions: 5

Compression:

Stored size: 281 Bytes

Contents

require 'spec_helper'

describe Weather::Utils do
  it 'should parse text into a Time object' do
    expect(Weather::Utils.parse_time '2007-01-31 12:22:26').to be_a Time
  end

  it 'should return nil if passed nothing' do
    expect(Weather::Utils.parse_time).to be_nil
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
weather-api-1.4.0 spec/lib/utils_spec.rb
weather-api-1.3.0 spec/lib/utils_spec.rb
weather-api-1.2.0 spec/lib/utils_spec.rb
weather-api-1.1.1 spec/lib/utils_spec.rb
weather-api-1.1.0 spec/lib/utils_spec.rb