Sha256: f9903173fa775a273b55a22e39e4ace19d083d427f6deb41ec3e8dec11e471cd

Contents?: true

Size: 588 Bytes

Versions: 4

Compression:

Stored size: 588 Bytes

Contents

require "spec_helper"

describe Lita::Handlers::Help, lita: true do
  it { routes("#{robot.name}: help").to(:help) }
  it { routes("#{robot.name}: help foo").to(:help) }

  describe "#help" do
    it "sends help information for all commands" do
      expect_reply(/help - Lists.+help COMMAND - Lists/m)
      send_test_message("#{robot.name}: help")
    end

    it "sends help information for commands starting with COMMAND" do
      expect_reply(/help COMMAND - Lists/)
      expect_no_reply(/help - Lists/)
      send_test_message("#{robot.name}: help help command")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lita-1.1.2 spec/lita/handlers/help_spec.rb
lita-1.1.1 spec/lita/handlers/help_spec.rb
lita-1.1.0 spec/lita/handlers/help_spec.rb
lita-1.0.0 spec/lita/handlers/help_spec.rb