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

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2022-10-20 07:26:44 +0300
committerEvan Read <eread@gitlab.com>2022-10-20 07:26:44 +0300
commit57dcecd43f28b3ecaf934422854ee99e67dd9ac9 (patch)
tree6aefac2a7d17afc31d53d220cd23ffbfaebcb60a /spec
parent170797ff300767509f858513d9a44b4183a01dac (diff)
Tidy up RuboCop violations in specs
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/filters/tabs_spec.rb4
-rw-r--r--spec/lib/task_helpers_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/filters/tabs_spec.rb b/spec/lib/filters/tabs_spec.rb
index bbaeca9a..e5d63014 100644
--- a/spec/lib/filters/tabs_spec.rb
+++ b/spec/lib/filters/tabs_spec.rb
@@ -8,7 +8,7 @@ describe TabsFilter do
subject(:run) { described_class.new.run(content) }
- context 'Tab titles' do
+ context 'when Tab title' do
let(:content) { '<p>:::TabTitle Cats</p>' }
it 'returns correct HTML' do
@@ -16,7 +16,7 @@ describe TabsFilter do
end
end
- context 'Tab wrapper' do
+ context 'when Tab wrapper' do
let(:content) { '<p>::Tabs</p>Tabs content<p>::EndTabs</p>' }
it 'returns correct HTML' do
diff --git a/spec/lib/task_helpers_spec.rb b/spec/lib/task_helpers_spec.rb
index 194e1ac8..2a5ada7e 100644
--- a/spec/lib/task_helpers_spec.rb
+++ b/spec/lib/task_helpers_spec.rb
@@ -8,7 +8,7 @@ describe TaskHelpers do
expect(
described_class.new.project_root
).to eq(
- File.expand_path(__dir__+'/../..')
+ File.expand_path(File.join(__dir__, '/../..'))
)
end
end