require 'spec_helper' describe UndergroundWeather::Client do before do @uw = UndergroundWeather::Client.new('api-key') end it 'can be created with an api_key' do UndergroundWeather::Client.new('api-key').must_be_instance_of(UndergroundWeather::Client) end it 'can have an api key' do @uw.api_key.must_equal('api-key') end end