Sha256: dd2daac2daefac814496d873b93dea564319c2656a6049b97eec6537363f76d1
Contents?: true
Size: 636 Bytes
Versions: 3
Compression:
Stored size: 636 Bytes
Contents
require "spec_helper" describe Ellen::Handlers::Help do let(:robot) do Ellen::Robot.new end describe "#help" do let(:from) do "alice" end let(:to) do "#general" end let(:body) do <<-EOS.strip_heredoc.strip ellen /help( me)?\\z/i - Show this help message ellen /ping\\z/i - Return PONG to PING EOS end it "responds to `@ellen help` and says each handler's usage" do robot.should_receive(:say).with( body: body, from: from, to: to, ) robot.receive(body: "@ellen help", from: from, to: to) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ellen-0.2.2 | spec/ellen/handlers/help_spec.rb |
ellen-0.2.1 | spec/ellen/handlers/help_spec.rb |
ellen-0.2.0 | spec/ellen/handlers/help_spec.rb |