Sha256: ced4777dc6ca7781eaeb06247e53d5fd35ff274e08da5062aa903417f397c945
Contents?: true
Size: 786 Bytes
Versions: 3
Compression:
Stored size: 786 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe GithubCLI::Commands::Users do let(:format) { {'format' => 'table'} } let(:user) { 'peter-murach' } let(:name) { 'github_cli' } let(:api_class) { GithubCLI::User } it "invokes user:list" do api_class.should_receive(:all).with({}, format) subject.invoke "user:list", [] end it "invokes user:get" do api_class.should_receive(:get).with({}, format) subject.invoke "user:get", [] end it "invokes user:get" do api_class.should_receive(:get).with({'user' => user}, format) subject.invoke "user:get", [], :user => user end it "invokes user:update --name" do api_class.should_receive(:update).with({'name' => name}, format) subject.invoke "user:update", [], :name => name end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.6.2 | spec/github_cli/commands/users_spec.rb |
github_cli-0.6.1 | spec/github_cli/commands/users_spec.rb |
github_cli-0.6.0 | spec/github_cli/commands/users_spec.rb |