spec/weather_services/wunderground_spec.rb in barometer-0.6.4 vs spec/weather_services/wunderground_spec.rb in barometer-0.6.6
- old
+ new
@@ -1,6 +1,6 @@
-require 'spec_helper'
+require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
include Barometer
describe "Wunderground" do
before(:each) do
@@ -143,18 +143,18 @@
@query = Barometer::Query.new("Calgary,AB")
@measurement = Barometer::Measurement.new
FakeWeb.register_uri(:get,
"http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=#{CGI.escape(@query.q)}",
- :string => File.read(File.join(File.dirname(__FILE__),
+ :body => File.read(File.join(File.dirname(__FILE__),
'../fixtures/services/wunderground',
'current_calgary_ab.xml')
)
)
FakeWeb.register_uri(:get,
"http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=#{CGI.escape(@query.q)}",
- :string => File.read(File.join(File.dirname(__FILE__),
+ :body => File.read(File.join(File.dirname(__FILE__),
'../fixtures/services/wunderground',
'forecast_calgary_ab.xml')
)
)
end
@@ -196,17 +196,17 @@
@query = Barometer::Query.new("Calgary,AB")
@measurement = Barometer::Measurement.new
FakeWeb.register_uri(:get,
"http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=#{CGI.escape(@query.q)}",
- :string => File.read(File.join(File.dirname(__FILE__),
+ :body => File.read(File.join(File.dirname(__FILE__),
'../fixtures/services/wunderground',
'current_calgary_ab.xml')
)
)
FakeWeb.register_uri(:get,
"http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=#{CGI.escape(@query.q)}",
- :string => File.read(File.join(File.dirname(__FILE__),
+ :body => File.read(File.join(File.dirname(__FILE__),
'../fixtures/services/wunderground',
'forecast_calgary_ab.xml')
)
)
end
\ No newline at end of file