Sha256: ff573f89ca9c38602c1ec3eea08aa0e9a1e9542bfd406cad1947473180ce7f50

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

# encoding: utf-8

require 'spec_helper'

describe GithubCLI::Commands::Statistics do
  let(:format) { {'format' => 'table'} }
  let(:user)   { 'peter-murach' }
  let(:repo)   { 'github_cli' }
  let(:api_class) { GithubCLI::Statistics }

  it "invokes stat:contribs" do
    api_class.should_receive(:contributors).with(user, repo, {}, format)
    subject.invoke "stat:contribs", [user, repo]
  end

  it "invokes stat:activity" do
    api_class.should_receive(:activity).with(user, repo, {}, format)
    subject.invoke "stat:activity", [user, repo]
  end

  it "invokes stat:frequency" do
    api_class.should_receive(:frequency).with(user, repo, {}, format)
    subject.invoke "stat:frequency", [user, repo]
  end

  it "invokes stat:participation" do
    api_class.should_receive(:participation).with(user, repo, {}, format)
    subject.invoke "stat:participation", [user, repo]
  end

  it "invokes stat:card" do
    api_class.should_receive(:card).with(user, repo, {}, format)
    subject.invoke "stat:card", [user, repo]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
github_cli-0.6.2 spec/github_cli/commands/statistics_spec.rb
github_cli-0.6.1 spec/github_cli/commands/statistics_spec.rb