spec/lita/handlers/cricket_spec.rb in lita-cricket-0.0.2 vs spec/lita/handlers/cricket_spec.rb in lita-cricket-0.0.3

- old
+ new

@@ -44,16 +44,18 @@ # Not sure what to test for here :( end it 'adds or removes a favourite team and also updates your favourite teams if you mention cricket' do send_message('cricket -f Cromer Cricket Club') - expect(replies.last).to eq('Added Cromer Cricket Club to your favourites: OK') + expect(replies.last).to eq('Subscribed you to favourite Cromer Cricket Club: OK') send_message('cricket is grouse') # it is tricky to test this last feature send_message('cricket -r Cromer Cricket Club') - expect(replies.last).to eq('Removed Cromer Cricket Club from your favourites: OK') + expect(replies.last).to eq('Unsubscribed you from favourite Cromer Cricket Club: OK') send_message('cricket -r Dee Why Cricket Club') expect(replies.last).to eq('Dee Why Cricket Club wasn\'t in your favourite list!') + send_message('cricket -f Derbyshire') + send_message('cricket') end it 'lists your favourite teams and subscribed matches' do send_message('cricket -i') expect(replies.detect{|x| ( x =~/Subscriptions:/ ) == 0}.nil?).to eq(false)