diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-18 06:09:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-18 06:09:05 +0300 |
commit | cd54eae89b35e0ba1d798cbe5850762c25e16132 (patch) | |
tree | 420909dc964c6203615a584f805ad490bae37690 /spec/haml_lint/linter | |
parent | 1ed60a08601fa29d01f9ed289b63aaa803626983 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/haml_lint/linter')
-rw-r--r-- | spec/haml_lint/linter/no_plain_nodes_spec.rb | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/spec/haml_lint/linter/no_plain_nodes_spec.rb b/spec/haml_lint/linter/no_plain_nodes_spec.rb index eeb0e4ea96f..235e742bc54 100644 --- a/spec/haml_lint/linter/no_plain_nodes_spec.rb +++ b/spec/haml_lint/linter/no_plain_nodes_spec.rb @@ -6,7 +6,7 @@ require 'haml_lint/spec' require_relative '../../../haml_lint/linter/no_plain_nodes' -RSpec.describe HamlLint::Linter::NoPlainNodes do +RSpec.describe HamlLint::Linter::NoPlainNodes, feature_category: :tooling do include_context 'linter' context 'reports when a tag has an inline plain node' do @@ -68,27 +68,27 @@ RSpec.describe HamlLint::Linter::NoPlainNodes do end context 'does not report multiline when one or more html entities' do - %w( > © »).each do |elem| - let(:haml) { <<-HAML } - %tag - #{elem} - HAML - - it elem do - is_expected.not_to report_lint + %w[ > © »].each do |elem| + context "with #{elem}" do + let(:haml) { <<-HAML } + %tag + #{elem} + HAML + + it { is_expected.not_to report_lint } end end end context 'does report multiline when one or more html entities amidst plain text' do - %w( Test Test> ©Hello Hello»).each do |elem| - let(:haml) { <<-HAML } - %tag - #{elem} - HAML - - it elem do - is_expected.to report_lint + %w[ Test Test> ©Hello Hello»].each do |elem| + context "with #{elem}" do + let(:haml) { <<-HAML } + %tag + #{elem} + HAML + + it { is_expected.to report_lint } end end end |