Sha256: 863bd6e435cc3ab58015d97e624139834b80ad15b53736d5ba334e6721157efe

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 Bytes

Contents

require "spec_helper"
require "rspec/expectations"
require "rspec/mocks"

describe Lita::Handlers::Whoami, lita_handler: true do
  it "will assign a person a descriptior." do
    send_command("taylor is a bad programmer")
    expect(replies).to_not be_empty
    expect(replies.last).to eq "Okay, taylor is a bad programmer!"
  end

  it "Can tell you what people are." do
    send_command("taylor is a bad programmer")
    expect(replies).to_not be_empty
    expect(replies.last).to eq "Okay, taylor is a bad programmer!"

    send_command("who is taylor")
    expect(replies.last).to eq "taylor is a bad programmer"
    expect(replies.count).to eq 2
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lita-whoami-0.1.2 spec/lita/handlers/whoami_spec.rb