test/roflbot/test_sentence_bot.rb in roflbot-0.0.0 vs test/roflbot/test_sentence_bot.rb in roflbot-0.0.1
- old
+ new
@@ -11,12 +11,12 @@
"sentences" => ["Hey (noun), (ending)"],
"noun" => %w{dude guy},
"ending" => ["sup?", "I love you."]
})
- @buddy.expects(:send_im).times(20).with do |message|
+ @buddy.expects(:send_im).times(100).with do |message|
message =~ /^Hey (dude|guy), (sup\?|I love you.)$/
end
- 20.times { |_| receive_im("hey") }
+ 100.times { |_| receive_im("hey") }
end
end
end