spec/ruboty/handlers/help_spec.rb in ruboty-1.2.2 vs spec/ruboty/handlers/help_spec.rb in ruboty-1.2.3

- old
+ new

@@ -22,11 +22,11 @@ ruboty /who am i\\?/i - Answer who you are EOS end it "responds to `@ruboty help` and says each handler's description" do - robot.should_receive(:say).with( + expect(robot).to receive(:say).with( body: body, code: true, from: to, to: from, original: { @@ -40,10 +40,10 @@ end end context "with filter" do it "filters descriptions by given filter" do - robot.should_receive(:say).with( + expect(robot).to receive(:say).with( hash_including( body: "ruboty /ping\\z/i - Return PONG to PING", ), ) robot.receive(body: "@ruboty help ping", from: from, to: to)