Sha256: 5ff4e0bba4f623c377ffd86bc98a041dffff4f34d668c8956766b88d39ccd98f

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 Bytes

Contents

RSpec.describe "script/knows", :session do
  before do
    start_session

    bot.know_how.each { |action|
      next if action.desc.command == "knows" ||
              action.desc.command == "pug me"
      bot.no action.desc.command
    }
  end

  it "formats the output indenting by the command name size" do
    expect(bot).to receive(:im)
      .with %(```\n knows: List all the commands known by this bot.
pug me: Send some nice pug in the channel.
```)
    faye.message "<@jeeba>: knows"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
boty-1.0.1 spec/script/knows_spec.rb
boty-1.0.0 spec/script/knows_spec.rb
boty-0.2.0 spec/script/knows_spec.rb