Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-12-14 21:19:26 +0300
committerValery Sizov <valery@gitlab.com>2016-12-14 21:19:26 +0300
commitc756e62b08f0a639f5550d17339b2938c9c9e096 (patch)
treeb4c3abe28080b48a72159d611ccc37b7c8b3e6a8 /spec/lib/bitbucket/connection_spec.rb
parent6bbe2f118ee17ac8b1d43a77f4020c048c427b77 (diff)
BB importer: fix specs
Diffstat (limited to 'spec/lib/bitbucket/connection_spec.rb')
-rw-r--r--spec/lib/bitbucket/connection_spec.rb4
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))