Sha256: 9a5cef173b5fb6f7ecc328d1c4561ab7fa44f4a480cfa6d0f1c6340642fbe72c
Contents?: true
Size: 587 Bytes
Versions: 18
Compression:
Stored size: 587 Bytes
Contents
require "spec_helper" describe Ruboty::Handlers::Whoami do let(:robot) do Ruboty::Robot.new end describe "#ping" do let(:from) do "alice" end let(:to) do "#general" end let(:said) do "@ruboty Who am I?" end it "returns PONG to PING" do robot.should_receive(:say).with( body: from, from: to, to: from, original: { body: said, from: from, robot: robot, to: to, }, ) robot.receive(body: said, from: from, to: to) end end end
Version data entries
18 entries across 18 versions & 1 rubygems