diff options
author | Valery Sizov <valery@gitlab.com> | 2016-12-14 21:19:26 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-12-14 21:19:26 +0300 |
commit | c756e62b08f0a639f5550d17339b2938c9c9e096 (patch) | |
tree | b4c3abe28080b48a72159d611ccc37b7c8b3e6a8 /spec/lib/bitbucket/connection_spec.rb | |
parent | 6bbe2f118ee17ac8b1d43a77f4020c048c427b77 (diff) |
BB importer: fix specs
Diffstat (limited to 'spec/lib/bitbucket/connection_spec.rb')
-rw-r--r-- | spec/lib/bitbucket/connection_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/bitbucket/connection_spec.rb b/spec/lib/bitbucket/connection_spec.rb index 6be681a8b47..14faeb231a9 100644 --- a/spec/lib/bitbucket/connection_spec.rb +++ b/spec/lib/bitbucket/connection_spec.rb @@ -1,6 +1,10 @@ require 'spec_helper' describe Bitbucket::Connection do + before do + allow_any_instance_of(described_class).to receive(:provider).and_return(double(app_id: '', app_secret: '')) + end + describe '#get' do it 'calls OAuth2::AccessToken::get' do expect_any_instance_of(OAuth2::AccessToken).to receive(:get).and_return(double(parsed: true)) |