Skip to content

Commit

Permalink
properly fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoni authored and Yoni committed May 22, 2016
1 parent 1fb5578 commit 7645124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/yahoo_weatherman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Weatherman

VERSION = '2.0.1'

URI = 'http://xml.yahooapis.com/forecastrss'
URI = 'http://xml.weather.yahoo.com/forecastrss'

# = Client
#
Expand Down
10 changes: 5 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ def fahrenheight_fixture
end

FakeWeb.allow_net_connect = false
FakeWeb.register_uri(:get, "http://xml.yahooapis.com/forecastrss?w=455821&u=c", :body => celsius_fixture)
FakeWeb.register_uri(:get, "http://xml.yahooapis.com/forecastrss?w=455821&u=f", :body => fahrenheight_fixture)
FakeWeb.register_uri(:get, "http://xml.yahooapis.com/forecastrss?w=123456&u=f", :body => celsius_fixture)
FakeWeb.register_uri(:get, "http://xml.yahooapis.com/forecastrss?w=4729347&u=c", :body => celsius_fixture)
FakeWeb.register_uri(:get, "http://xml.yahooapis.com/forecastrss?w=12786745&u=c", :body => celsius_fixture)
FakeWeb.register_uri(:get, "http://xml.weather.yahoo.com/forecastrss?w=455821&u=c", :body => celsius_fixture)
FakeWeb.register_uri(:get, "http://xml.weather.yahoo.com/forecastrss?w=455821&u=f", :body => fahrenheight_fixture)
FakeWeb.register_uri(:get, "http://xml.weather.yahoo.com/forecastrss?w=123456&u=f", :body => celsius_fixture)
FakeWeb.register_uri(:get, "http://xml.weather.yahoo.com/forecastrss?w=4729347&u=c", :body => celsius_fixture)
FakeWeb.register_uri(:get, "http://xml.weather.yahoo.com/forecastrss?w=12786745&u=c", :body => celsius_fixture)

module YAML
class << self
Expand Down

0 comments on commit 7645124

Please sign in to comment.