Sha256: 26bc539d9faade84794d9f2dfba85e6abb70909bf9fe3189dab6295578523d82

Contents?: true

Size: 846 Bytes

Versions: 1

Compression:

Stored size: 846 Bytes

Contents

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  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
undergroundweather-0.0.3 spec/undergroundweather/features_spec.rb