spec/weather_services/yahoo_spec.rb in barometer-0.6.4 vs spec/weather_services/yahoo_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 "Yahoo" do before(:each) do @@ -90,11 +90,11 @@ @query = Barometer::Query.new("90210") @measurement = Barometer::Measurement.new FakeWeb.register_uri(:get, "http://weather.yahooapis.com:80/forecastrss?u=c&p=#{CGI.escape(@query.q)}", - :string => File.read(File.join(File.dirname(__FILE__), + :body => File.read(File.join(File.dirname(__FILE__), '../fixtures/services/yahoo', '90210.xml') ) ) end @@ -136,10 +136,10 @@ @query = Barometer::Query.new("90210") @measurement = Barometer::Measurement.new FakeWeb.register_uri(:get, "http://weather.yahooapis.com:80/forecastrss?u=c&p=#{CGI.escape(@query.q)}", - :string => File.read(File.join(File.dirname(__FILE__), + :body => File.read(File.join(File.dirname(__FILE__), '../fixtures/services/yahoo', '90210.xml') ) ) end \ No newline at end of file