Sha256: 64fdee88c474a0a8b758cb478de6b5185bd45cdd19b7901447ab0409a70b9591
Contents?: true
Size: 915 Bytes
Versions: 6
Compression:
Stored size: 915 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe GithubCLI::Commands::Collaborators do let(:format) { 'table' } let(:owner) { 'peter-murach' } let(:repo) { 'github_cli' } let(:user) { 'github' } let(:api_class) { GithubCLI::Collaborator } it "invokes collab:list" do api_class.should_receive(:all).with(owner, repo, {}, format) subject.invoke "collab:list", [owner, repo] end it "invokes collab:add" do api_class.should_receive(:add).with(owner, repo, user, {}, format) subject.invoke "collab:add", [owner, repo, user] end it "invokes collab:collab" do api_class.should_receive(:collaborator?).with(owner, repo, user, {}, format) subject.invoke "collab:collab", [owner, repo, user] end it "invokes collab:collab" do api_class.should_receive(:remove).with(owner, repo, user, {}, format) subject.invoke "collab:remove", [owner, repo, user] end end
Version data entries
6 entries across 6 versions & 1 rubygems