Sha256: 6c96274c7a33e7719231d48ba5e23370bbaf0d08a4fe72db51bde3d25118d54a
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
# encoding: utf-8 require 'spec_helper' describe GithubCLI::Commands::Starring do let(:format) { {'format' => 'table'} } let(:user) { 'peter-murach' } let(:repo) { 'github_cli' } let(:api_class) { GithubCLI::Starring } it "invokes star:list" do api_class.should_receive(:list).with(user, repo, {}, format) subject.invoke "star:list", [user, repo] end it "invokes star:starred" do api_class.should_receive(:starred).with({}, format) subject.invoke "star:starred", [] end it "invokes star:starred --user" do api_class.should_receive(:starred).with({"user" => user}, format) subject.invoke "star:starred", [], :user => user end it "invokes star:starring" do api_class.should_receive(:starring?).with(user, repo, {}, format) subject.invoke "star:starring", [user, repo] end it "invokes star:star" do api_class.should_receive(:star).with(user, repo, {}, format) subject.invoke "star:star", [user, repo] end it "invokes star:star" do api_class.should_receive(:unstar).with(user, repo, {}, format) subject.invoke "star:unstar", [user, repo] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.6.2 | spec/github_cli/commands/starring_spec.rb |
github_cli-0.6.1 | spec/github_cli/commands/starring_spec.rb |
github_cli-0.6.0 | spec/github_cli/commands/starring_spec.rb |