Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-18 06:09:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-18 06:09:05 +0300
commitcd54eae89b35e0ba1d798cbe5850762c25e16132 (patch)
tree420909dc964c6203615a584f805ad490bae37690 /spec/haml_lint
parent1ed60a08601fa29d01f9ed289b63aaa803626983 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/haml_lint')
-rw-r--r--spec/haml_lint/linter/no_plain_nodes_spec.rb34
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(&nbsp;&gt; &#x000A9; &#187;).each do |elem|
- let(:haml) { <<-HAML }
- %tag
- #{elem}
- HAML
-
- it elem do
- is_expected.not_to report_lint
+ %w[&nbsp;&gt; &#x000A9; &#187;].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(&nbsp;Test Test&gt; &#x000A9;Hello &nbsp;Hello&#187;).each do |elem|
- let(:haml) { <<-HAML }
- %tag
- #{elem}
- HAML
-
- it elem do
- is_expected.to report_lint
+ %w[&nbsp;Test Test&gt; &#x000A9;Hello &nbsp;Hello&#187;].each do |elem|
+ context "with #{elem}" do
+ let(:haml) { <<-HAML }
+ %tag
+ #{elem}
+ HAML
+
+ it { is_expected.to report_lint }
end
end
end