Sha256: 49f8c5605315f7daa9cae870e07891106c6e55622ac975588507e23a09d14899
Contents?: true
Size: 1.6 KB
Versions: 3
Compression:
Stored size: 1.6 KB
Contents
# encoding: utf-8 require 'spec_helper' describe GithubCLI::Commands::Events do let(:format) { { 'format' => 'table' } } let(:user) { 'peter-murach' } let(:repo) { 'github_cli' } let(:org) { 'github' } let(:api_class) { GithubCLI::Event } it "invokes event:public" do api_class.should_receive(:public).with({}, format) subject.invoke "event:public", [] end it "invokes event:repo" do api_class.should_receive(:repository).with(user, repo, {}, format) subject.invoke "event:repo", [user, repo] end it "invokes event:issue" do api_class.should_receive(:repository).with(user, repo, {}, format) subject.invoke "event:repo", [user, repo] end it "invokes event:network" do api_class.should_receive(:network).with(user, repo, {}, format) subject.invoke "event:network", [user, repo] end it "invokes event:org" do api_class.should_receive(:organization).with(org, {}, format) subject.invoke "event:org", [org] end it "invokes event:received" do api_class.should_receive(:received).with(user, {}, format) subject.invoke "event:received", [user] end it "invokes event:received --public" do api_class.should_receive(:received).with(user, {'public' => true}, format) subject.invoke "event:received", [user], :public => true end it "invokes event:performed" do api_class.should_receive(:performed).with(user, {}, format) subject.invoke "event:performed", [user] end it "invokes event:user_org" do api_class.should_receive(:user_org).with(user, org, {}, format) subject.invoke "event:user_org", [user, org] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.6.2 | spec/github_cli/commands/events_spec.rb |
github_cli-0.6.1 | spec/github_cli/commands/events_spec.rb |
github_cli-0.6.0 | spec/github_cli/commands/events_spec.rb |