Sha256: f4c86fdc6aed88fc26489c4320706adb55172982ab216b73940bcfb61dec1566
Contents?: true
Size: 612 Bytes
Versions: 9
Compression:
Stored size: 612 Bytes
Contents
describe Lita::Handlers::Room, lita_handler: true do it { routes_command("join #lita.io").to(:join) } it { routes_command("part #lita.io").to(:part) } before { allow(Lita::Authorization).to receive(:user_is_admin?).with(user).and_return(true) } describe "#join" do it "calls Robot#join with the provided ID" do expect(robot).to receive(:join).with("#lita.io") send_command("join #lita.io") end end describe "#part" do it "calls Robot#part with the provided ID" do expect(robot).to receive(:part).with("#lita.io") send_command("part #lita.io") end end end
Version data entries
9 entries across 9 versions & 1 rubygems