Sha256: 4eb4b115499d7e496be438c33383b8eb8892abf9b607bcb201393a79489fb6fc

Contents?: true

Size: 1.29 KB

Versions: 6

Compression:

Stored size: 1.29 KB

Contents

# encoding: utf-8

require 'spec_helper'

describe GithubCLI::Commands::Followers do
  let(:format) { 'table' }
  let(:user)   { 'peter-murach' }
  let(:api_class) { GithubCLI::Follower }

  it "invokes follower:list with user" do
    api_class.should_receive(:all).with(user, {}, format)
    subject.invoke "follower:list", [], :user => user
  end

  it "invokes follower:list without user" do
    api_class.should_receive(:all).with(nil, {}, format)
    subject.invoke "follower:list", []
  end

  it "invokes follower:following with user" do
    api_class.should_receive(:following).with(user, {}, format)
    subject.invoke "follower:following", [], :user => user
  end

  it "invokes follower:following without user" do
    api_class.should_receive(:following).with(nil, {}, format)
    subject.invoke "follower:following", []
  end

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

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

  it "invokes follower:follow with user" do
    api_class.should_receive(:unfollow).with(user, {}, format)
    subject.invoke "follower:unfollow", [user]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
github_cli-0.5.9 spec/github_cli/commands/followers_spec.rb
github_cli-0.5.8 spec/github_cli/commands/followers_spec.rb
github_cli-0.5.7 spec/github_cli/commands/followers_spec.rb
github_cli-0.5.6 spec/github_cli/commands/followers_spec.rb
github_cli-0.5.5 spec/github_cli/commands/followers_spec.rb
github_cli-0.5.4 spec/github_cli/commands/followers_spec.rb