Sha256: 2a4052659d0c48e367ebdfe078e7c68011ce5e548d86b1ab9035080afb06a140
Contents?: true
Size: 1.58 KB
Versions: 6
Compression:
Stored size: 1.58 KB
Contents
# encoding: utf-8 require 'spec_helper' describe GithubCLI::Commands::Events do let(: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
6 entries across 6 versions & 1 rubygems