diff options
Diffstat (limited to 'spec/helpers/markup_helper_spec.rb')
-rw-r--r-- | spec/helpers/markup_helper_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/helpers/markup_helper_spec.rb b/spec/helpers/markup_helper_spec.rb index 3fb36e540b6..c22e20f0e73 100644 --- a/spec/helpers/markup_helper_spec.rb +++ b/spec/helpers/markup_helper_spec.rb @@ -537,8 +537,10 @@ describe MarkupHelper do it 'does not style a label that can not be accessed by current_user' do project = create(:project, :private) + label = create_and_format_label(project) - expect(create_and_format_label(project)).to eq("<p>#{label_title}</p>") + expect(label).to include("~label_1") + expect(label).not_to match(/span class=.*style=.*/) end end |