Sha256: d1373728ff4a3b7606eab496143a6447dccf739bf3639b030241e50bab9d3b97

Contents?: true

Size: 280 Bytes

Versions: 3

Compression:

Stored size: 280 Bytes

Contents

require 'spec_helper'

describe Forecastr::Wind do
  let(:wind) { Forecastr::Wind.new("wind" => {"speed" => 2.5,"deg" => -37}) }

  it 'has speed in m/s' do
    expect(wind.speed).to eq "2.5 m/s"
  end

  it 'has has direction' do
    expect(wind.direction).to eq "NNW"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
forecastr-0.1.2 spec/forecastr/wind_spec.rb
forecastr-0.1.1 spec/forecastr/wind_spec.rb
forecastr-0.1.0 spec/forecastr/wind_spec.rb