summaryrefslogtreecommitdiff
path: root/spec/lib/banzai
diff options
context:
space:
mode:
authorReuben Pereira <reuben453@gmail.com>2018-06-30 16:11:10 +0530
committerReuben Pereira <reuben453@gmail.com>2018-06-30 16:11:10 +0530
commita4577cb5f9403d4e777de9d252854a78f3579cbb (patch)
tree16138fe5a43edb4bcfe395ec5fc180fb456a3dd9 /spec/lib/banzai
parentc0dfaf98ac60fc928a2df5f7f355b262f0fcaf91 (diff)
downloadgitlab-ce-a4577cb5f9403d4e777de9d252854a78f3579cbb.tar.gz
Correct the "includes a data-project attribute" test in project_reference_filter_spec
Diffstat (limited to 'spec/lib/banzai')
-rw-r--r--spec/lib/banzai/filter/project_reference_filter_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/banzai/filter/project_reference_filter_spec.rb b/spec/lib/banzai/filter/project_reference_filter_spec.rb
index 2ace8496b08..e5b18ee2cdb 100644
--- a/spec/lib/banzai/filter/project_reference_filter_spec.rb
+++ b/spec/lib/banzai/filter/project_reference_filter_spec.rb
@@ -68,7 +68,7 @@ describe Banzai::Filter::ProjectReferenceFilter do
link = doc.css('a').first
expect(link).to have_attribute('data-project')
- expect(link.attr('data-project')).to eq project.namespace.owner_id.to_s
+ expect(link.attr('data-project')).to eq project.id.to_s
end
end