diff options
-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 |