require 'spec_helper' describe UndergroundWeather::Features do before do class Features extend UndergroundWeather::Features end @api_response = mock() @api_response.stubs(:response).returns({}) @api_response.stubs(:error).returns(false) UndergroundWeather::ApiCall.stubs(:new).returns(@api_response) end it "should define conditions" do Features.must_respond_to(:conditions) end it "should define forecast" do Features.must_respond_to(:forecast) end it "should define astronomy" do Features.must_respond_to(:astronomy) end it "should define radar" do Features.must_respond_to(:radar) end it "should define satellite" do Features.must_respond_to(:satellite) end it "should define webcams" do Features.must_respond_to(:webcams) end end