Sha256: 89887fb5689dbddae13920b7eb0e92077cae0d9edaf8a79709c247e0cc2f9295
Contents?: true
Size: 581 Bytes
Versions: 4
Compression:
Stored size: 581 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe GithubCLI::Commands::Blobs do let(:format) { 'table' } let(:user) { 'peter-murach' } let(:repo) { 'github_cli' } let(:sha) { '3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15' } let(:api_class) { GithubCLI::Blob } it "invokes blob:get" do api_class.should_receive(:get).with(user, repo, sha, {}, format) subject.invoke "blob:get", [user, repo, sha] end it "invokes blob:create" do api_class.should_receive(:create).with(user, repo, {}, format) subject.invoke "blob:create", [user, repo] end end
Version data entries
4 entries across 4 versions & 1 rubygems