Sha256: 9d2ece771a8ae53052f3a3766fa10da9635706344a59c4f04dd78898aec30366

Contents?: true

Size: 319 Bytes

Versions: 6

Compression:

Stored size: 319 Bytes

Contents

require 'spec_helper'

describe Forecastr::Temperature do
  let(:temperature) { Forecastr::Temperature.new(306.11) }

  describe "formats" do
    it '#to_celsius' do
      expect(temperature.to_celsius).to eq 32.96
    end

    it '#to_farenheit' do
      expect(temperature.to_farenheit).to eq 91.33
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
forecastr-0.1.5 spec/forecastr/temperature_spec.rb
forecastr-0.1.4 spec/forecastr/temperature_spec.rb
forecastr-0.1.3 spec/forecastr/temperature_spec.rb
forecastr-0.1.2 spec/forecastr/temperature_spec.rb
forecastr-0.1.1 spec/forecastr/temperature_spec.rb
forecastr-0.1.0 spec/forecastr/temperature_spec.rb