Sha256: 34e384e960c4328d226cda59a93cf3e5c6db7601bf1fc63a126080795571be3d

Contents?: true

Size: 511 Bytes

Versions: 28

Compression:

Stored size: 511 Bytes

Contents

describe Lita::Handlers::GithubPrList, lita_handler: true do
  before :each do
    Lita.config.handlers.github_pr_list.github_organization = 'aaaaaabbbbbbcccccc'
    Lita.config.handlers.github_pr_list.github_access_token = 'wafflesausages111111'
  end

  it "maps the github name to the hipchat username (mention)" do
    send_command("pr alias user mcwaffle mcrib")

    expect(replies.last).to include("Mapped mcwaffle to mcrib")
    expect(subject.redis.get("alias:mcwaffle")).to include("mcrib")
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
lita-github_pr_list-0.0.9 spec/lita/handlers/alias_spec.rb
lita-github_pr_list-0.0.8 spec/lita/handlers/alias_spec.rb
lita-github_pr_list-0.0.7 spec/lita/handlers/alias_spec.rb
lita-github_pr_list-0.0.6 spec/lita/handlers/alias_spec.rb
lita-github_pr_list-0.0.5 spec/lita/handlers/alias_spec.rb
lita-github_pr_list-0.0.4 spec/lita/handlers/alias_spec.rb
lita-github_pr_list-0.0.2 spec/lita/handlers/alias_spec.rb
lita-github_pr_list-0.0.1 spec/lita/handlers/alias_spec.rb