Sha256: 63052eb4f30fd38c1be1a704f5f091a5c68d826d602402e30b1781126fba4f4a

Contents?: true

Size: 657 Bytes

Versions: 3

Compression:

Stored size: 657 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

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

  it "invokes email:add" do
    api_class.should_receive(:add).with(['email1', 'email2'], {}, format)
    subject.invoke "email:add", ['email1', 'email2']
  end

  it "invokes email:delete" do
    api_class.should_receive(:delete).with(['email1', 'email2'], {}, format)
    subject.invoke "email:delete", ['email1', 'email2']
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
github_cli-0.6.2 spec/github_cli/commands/emails_spec.rb
github_cli-0.6.1 spec/github_cli/commands/emails_spec.rb
github_cli-0.6.0 spec/github_cli/commands/emails_spec.rb