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