spec/lita/handlers/markov_spec.rb in lita-markov-1.1.2 vs spec/lita/handlers/markov_spec.rb in lita-markov-1.2.0
- old
+ new
@@ -19,14 +19,15 @@
send_command "#{robot.name} markov #{user.mention_name}"
expect(replies.count).to eql 1
+ reply = replies[0]
possible_replies = [
- 'I love cookies!',
- 'I love pancakes!'
+ 'I love cookies.',
+ 'I love pancakes.'
]
- expect(possible_replies).to include replies[0]
+ expect(possible_replies.any? { |r| reply.include?(r) }).to eql true
end
it "will complain if the user hasn't said anything" do
send_command "#{robot.name} markov #{user.mention_name}"