Sha256: 8eab0005a9494bbcc3bebebfb0a6edeb552488b900e24fd060fc3f512b579bf4

Contents?: true

Size: 546 Bytes

Versions: 6

Compression:

Stored size: 546 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe GithubCLI::Commands::Assignees do
  let(:format) { 'table' }
  let(:user)   { 'peter-murach' }
  let(:repo)   { 'github_cli' }
  let(:api_class) { GithubCLI::Assignee }

  it "invokes assignee:list" do
    api_class.should_receive(:all).with(user, repo, {}, format)
    subject.invoke "assignee:list", [user, repo]
  end

  it "invokes assignee:check" do
    api_class.should_receive(:check).with(user, repo, 'git', {}, format)
    subject.invoke "assignee:check", [user, repo, 'git']
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
github_cli-0.5.9 spec/github_cli/commands/assignees_spec.rb
github_cli-0.5.8 spec/github_cli/commands/assignees_spec.rb
github_cli-0.5.7 spec/github_cli/commands/assignees_spec.rb
github_cli-0.5.6 spec/github_cli/commands/assignees_spec.rb
github_cli-0.5.5 spec/github_cli/commands/assignees_spec.rb
github_cli-0.5.4 spec/github_cli/commands/assignees_spec.rb