Sha256: 923765b7a08c39c6487e87b01904fd940259568487f0f7f27a6336d92194577d
Contents?: true
Size: 983 Bytes
Versions: 1
Compression:
Stored size: 983 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.chomp. 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.chomp. 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.chomp. 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.chomp. should include('Sorry, couldn\'t find 34.') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cinch-weatherman-1.0.0 | spec/cinch-weatherman_spec.rb |