spec/cinch-weatherman_spec.rb in cinch-weatherman-1.0.0 vs spec/cinch-weatherman_spec.rb in cinch-weatherman-1.0.1

- old
+ new

@@ -3,32 +3,32 @@ describe Cinch::Plugins::Weatherman do include Cinch::Test before(:each) do - @bot = make_bot(Cinch::Plugins::Weatherman, {}) + @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. + 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.chomp. + 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.chomp. + 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.chomp. + get_replies(msg).last.text. should include('Sorry, couldn\'t find 34.') end end