Sha256: 236c4585b2b126e9709d374dfe8c92f5feb3f1979fbe0b6e475ebe9be4c76593
Contents?: true
Size: 549 Bytes
Versions: 3
Compression:
Stored size: 549 Bytes
Contents
require 'spec_helper' describe GithubCLI::API, '#gihtub_api' do before { described_class.send(:instance_variable_set, :@github_api, nil) } it 'sets up github api connection' do github_instance = stub.as_null_object Github.should_receive(:new).and_return github_instance expect(described_class.github_api).to eql(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 # GithubCLI::API
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.6.2 | spec/github_cli/api/github_api_spec.rb |
github_cli-0.6.1 | spec/github_cli/api/github_api_spec.rb |
github_cli-0.6.0 | spec/github_cli/api/github_api_spec.rb |