Sha256: 71161425487e18036fee5372d098c902426e09afd16af2835532cf02e5b7bb64
Contents?: true
Size: 975 Bytes
Versions: 2
Compression:
Stored size: 975 Bytes
Contents
require 'spec_helper' describe Cinch::Plugins::Weatherman do include Cinch::Test before(:each) do @bot = make_bot(Cinch::Plugins::Weatherman) end it 'should allow users to ask for weather by zip' do msg = make_message(@bot, '!weather 94062') get_replies(msg).last.text. should include('In Redwood City, CA it is') end it 'should allow users to ask for weather by city, state' do msg = make_message(@bot, '!weather redwood city, ca') get_replies(msg).last.text. should include('In Redwood City, CA it is') end it 'should allow users to ask for weather by airport code' do msg = make_message(@bot, '!weather SFO') get_replies(msg).last.text. should include('In San Francisco International, CA it is') end it 'should return an error when location not found' do msg = make_message(@bot, '!weather 34') get_replies(msg).last.text. should include('Sorry, couldn\'t find 34.') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cinch-weatherman-1.0.3 | spec/cinch-weatherman_spec.rb |
cinch-weatherman-1.0.1 | spec/cinch-weatherman_spec.rb |