Sha256: b1c8e5cd365939c1f8cd7bea48f54164d27fe6e02872d501d9aae3444e2298c0

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe GithubCLI::Commands::Notifications do
  let(:format) { 'table' }
  let(:user)   { 'peter-murach' }
  let(:repo)   { 'github_cli' }
  let(:id)     { 1 }
  let(:api_class) { GithubCLI::Notification }

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

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

  it "invokes notify:get" do
    api_class.should_receive(:get).with(id, {}, format)
    subject.invoke "notify:get", [id]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
github_cli-0.5.7 spec/github_cli/commands/notifications_spec.rb