diff options
author | Patrick Derichs <pderichs@gitlab.com> | 2019-05-08 11:20:18 +0200 |
---|---|---|
committer | Patrick Derichs <pderichs@gitlab.com> | 2019-05-08 11:20:18 +0200 |
commit | 319f3deae58fb78e3e148f0b9f0cd4303e8e7dd6 (patch) | |
tree | be1f55074c23d59fed412ad643afe151ae4cc60a | |
parent | 5e1dd46c66ce2d160c584a6a65a2eeec2cc1798e (diff) | |
download | gitlab-ce-25830-fix-label-creation-bug-for-bitbucket-import.tar.gz |
Reduce queries by using project.labels.find25830-fix-label-creation-bug-for-bitbucket-import
-rw-r--r-- | spec/lib/gitlab/bitbucket_import/importer_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/bitbucket_import/importer_spec.rb b/spec/lib/gitlab/bitbucket_import/importer_spec.rb index 4f5a30df835..a02c00e3340 100644 --- a/spec/lib/gitlab/bitbucket_import/importer_spec.rb +++ b/spec/lib/gitlab/bitbucket_import/importer_spec.rb @@ -256,7 +256,7 @@ describe Gitlab::BitbucketImport::Importer do Timecop.freeze(Time.now + 1.minute) do importer.execute - label_after_import = Label.find(existing_label.id) + label_after_import = project.labels.find(existing_label.id) expect(label_after_import.attributes).to eq(existing_label.attributes) end end |