spec/weather_services/services_spec.rb in barometer-0.6.7 vs spec/weather_services/services_spec.rb in barometer-0.7.0
- old
+ new
@@ -29,10 +29,10 @@
lambda { Barometer::WeatherService.source(:not_valid) }.should raise_error(ArgumentError)
lambda { Barometer::WeatherService.source(:wunderground) }.should_not raise_error(ArgumentError)
end
it "returns the corresponding Service object" do
- Barometer::WeatherService.source(:wunderground).should == WeatherService::Wunderground
+ Barometer::WeatherService.source(:wunderground).should == Barometer::WeatherService::Wunderground
Barometer::WeatherService.source(:wunderground).superclass.should == Barometer::WeatherService
end
it "raises an error when retrieving the wrong class" do
lambda { Barometer::WeatherService.source(:temperature) }.should raise_error(ArgumentError)
\ No newline at end of file