Sha256: 4a00b6c8a8190133fd28fa3a9fa2c59735c908b2f27a8bf8ca6ef5f0038f9fb1
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
require 'spec_helper' describe GithubCLI::API do context '#github_api' do before(:each) { described_class.class_variable_set :@@api, nil } it 'sets up github api connection' do github_instance = stub Github.should_receive(:new).and_return github_instance described_class.github_api.should == github_instance end it 'does not instantiate on subsequent calls' do described_class.github_api Github.should_receive(:new).exactly(0).times described_class.github_api end end end # GithubCLI::API
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.0.1.pre | spec/github_cli/api_spec.rb |