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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-20 02:18:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-20 02:18:09 +0300
commit6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch)
treedc4d20fe6064752c0bd323187252c77e0a89144b /spec/services/import
parent9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff)
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'spec/services/import')
-rw-r--r--spec/services/import/github_service_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/services/import/github_service_spec.rb b/spec/services/import/github_service_spec.rb
index 1c26677cfa5..67a2c237e43 100644
--- a/spec/services/import/github_service_spec.rb
+++ b/spec/services/import/github_service_spec.rb
@@ -56,7 +56,7 @@ RSpec.describe Import::GithubService do
end
context 'repository size validation' do
- let(:repository_double) { double(name: 'repository', size: 99) }
+ let(:repository_double) { { name: 'repository', size: 99 } }
before do
expect(client).to receive(:repository).and_return(repository_double)
@@ -84,7 +84,7 @@ RSpec.describe Import::GithubService do
end
it 'returns error when the repository is larger than the limit' do
- allow(repository_double).to receive(:size).and_return(101)
+ repository_double[:size] = 101
expect(subject.execute(access_params, :github)).to include(size_limit_error)
end
@@ -103,7 +103,7 @@ RSpec.describe Import::GithubService do
end
it 'returns error when the repository is larger than the limit' do
- allow(repository_double).to receive(:size).and_return(101)
+ repository_double[:size] = 101
expect(subject.execute(access_params, :github)).to include(size_limit_error)
end
@@ -113,14 +113,14 @@ RSpec.describe Import::GithubService do
context 'when import source is disabled' do
let(:repository_double) do
- double({
+ {
name: 'vim',
description: 'test',
full_name: 'test/vim',
clone_url: 'http://repo.com/repo/repo.git',
private: false,
has_wiki?: false
- })
+ }
end
before do