Sha256: 559d29ac7956a4cd86822758a935dde8bd1b258313ddb2427efcafeb1b630191

Contents?: true

Size: 397 Bytes

Versions: 6

Compression:

Stored size: 397 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

require_relative '../lib/seattle_weather_gem.rb'

describe "SeattleWeatherGem" do
  it "prints #current_temp" do
    seattle_temp = SeattleWeather.new
    seattle_temp.stub(:data_feed).and_return('main' => {'temp' => 280})
    seattle_temp.current_temp.should == "Seattle's current temperature is 45 degrees Fahrenheit"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
seattle_weather_gem-0.6.0 spec/seattle_weather_gem_spec.rb
seattle_weather_gem-0.5.0 spec/seattle_weather_gem_spec.rb
seattle_weather_gem-0.4.0 spec/seattle_weather_gem_spec.rb
seattle_weather_gem-0.3.0 spec/seattle_weather_gem_spec.rb
seattle_weather_gem-0.2.0 spec/seattle_weather_gem_spec.rb
seattle_weather_gem-0.1.0 spec/seattle_weather_gem_spec.rb