diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-03 11:31:07 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-03 12:41:11 +0300 |
commit | 34769efa790ca39718c6ab218e8018a501f861ab (patch) | |
tree | 867add82dfba417d590688f34db88d0ed5ffa0e1 /spec/lib/banzai/filter/label_reference_filter_spec.rb | |
parent | d49c8e8e3d0f0dee7886d421c91684d92f89c78e (diff) |
Change content of cross project label
Diffstat (limited to 'spec/lib/banzai/filter/label_reference_filter_spec.rb')
-rw-r--r-- | spec/lib/banzai/filter/label_reference_filter_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/banzai/filter/label_reference_filter_spec.rb b/spec/lib/banzai/filter/label_reference_filter_spec.rb index 8786095fbe4..e2d21f53b7e 100644 --- a/spec/lib/banzai/filter/label_reference_filter_spec.rb +++ b/spec/lib/banzai/filter/label_reference_filter_spec.rb @@ -178,8 +178,8 @@ describe Banzai::Filter::LabelReferenceFilter, lib: true do end describe 'cross project label references' do - let(:project_name) { 'Some project' } - let(:another_project) { create(:empty_project, :public, name: project_name) } + let(:another_project) { create(:empty_project, :public) } + let(:project_name) { another_project.name_with_namespace } let(:label) { create(:label, project: another_project, color: '#00ff00') } let(:reference) { label.to_reference(project) } @@ -198,7 +198,7 @@ describe Banzai::Filter::LabelReferenceFilter, lib: true do end it 'contains cross project content' do - expect(result.css('a').first.text).to eq "#{label.name} « #{project_name}" + expect(result.css('a').first.text).to eq "#{label.name} in #{project_name}" end end end |