Skip to content

Commit 8b630e0

Browse files
committed
(CONT-773) Rubocop Manual Fix 2 - RSpec/ExampleWording
1 parent bae1dc7 commit 8b630e0

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,6 @@ RSpec/DescribeClass:
7979
RSpec/ExampleLength:
8080
Max: 15
8181

82-
# Offense count: 10
83-
# This cop supports safe autocorrection (--autocorrect).
84-
# Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
85-
# DisallowedExamples: works
86-
RSpec/ExampleWording:
87-
Exclude:
88-
- 'spec/acceptance/apt_key_provider_spec.rb'
89-
9082
# Offense count: 3
9183
RSpec/LeakyConstantDeclaration:
9284
Exclude:

spec/acceptance/apt_key_provider_spec.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ def apply_manifest_twice(manifest_pp)
677677

678678
describe 'content =>' do
679679
context 'with puppetlabs gpg key' do
680-
it 'works' do
680+
it 'applies without error' do
681681
# Apply the manifest (Retry if timeout error is received from key pool)
682682
retry_on_error_matching do
683683
apply_manifest(gpg_key_pp, catch_failures: true)
@@ -706,7 +706,7 @@ def apply_manifest_twice(manifest_pp)
706706

707707
describe 'server =>' do
708708
context 'with hkp://pgp.mit.edu:80' do
709-
it 'works' do
709+
it 'applies without error' do
710710
retry_on_error_matching do
711711
apply_manifest(hkp_pool_pp, catch_failures: true)
712712
end
@@ -718,7 +718,7 @@ def apply_manifest_twice(manifest_pp)
718718

719719
if hkps_protocol_supported
720720
context 'with hkps://keyserver.ubuntu.com' do
721-
it 'works' do
721+
it 'applies without error' do
722722
retry_on_error_matching do
723723
apply_manifest(hkps_ubuntu_pp, catch_failures: true)
724724
end
@@ -748,7 +748,7 @@ def apply_manifest_twice(manifest_pp)
748748

749749
describe 'source =>' do
750750
context 'with http://' do
751-
it 'works' do
751+
it 'applies without error' do
752752
apply_manifest_twice(http_works_pp)
753753
run_shell(PUPPETLABS_KEY_CHECK_COMMAND)
754754
end
@@ -777,7 +777,7 @@ def apply_manifest_twice(manifest_pp)
777777
run_shell("apt-key del #{CENTOS_GPG_KEY_LONG_ID}", expect_failures: true)
778778
end
779779

780-
it 'works' do
780+
it 'applies without error' do
781781
apply_manifest_twice(ftp_works_pp)
782782
run_shell(CENTOS_KEY_CHECK_COMMAND)
783783
end
@@ -796,7 +796,7 @@ def apply_manifest_twice(manifest_pp)
796796
end
797797

798798
context 'with https://' do
799-
it 'works' do
799+
it 'applies without error' do
800800
apply_manifest_twice(https_works_pp)
801801
run_shell(PUPPETLABS_KEY_CHECK_COMMAND)
802802
end
@@ -834,7 +834,7 @@ def apply_manifest_twice(manifest_pp)
834834
run_shell('rm /tmp/puppetlabs-pubkey.gpg')
835835
end
836836

837-
it 'works' do
837+
it 'applies without error' do
838838
apply_manifest_twice(path_exists_pp)
839839
run_shell(PUPPETLABS_KEY_CHECK_COMMAND)
840840
end
@@ -867,7 +867,7 @@ def apply_manifest_twice(manifest_pp)
867867

868868
describe 'options =>' do
869869
context 'with debug' do
870-
it 'works' do
870+
it 'applies without error' do
871871
apply_manifest_twice(debug_works_pp)
872872
run_shell(PUPPETLABS_KEY_CHECK_COMMAND)
873873
end
@@ -876,13 +876,13 @@ def apply_manifest_twice(manifest_pp)
876876

877877
describe 'fingerprint validation against source/content' do
878878
context 'with fingerprint in id matches fingerprint from remote key' do
879-
it 'works' do
879+
it 'applies without error' do
880880
apply_manifest_twice(fingerprint_match_pp)
881881
end
882882
end
883883

884884
context 'with fingerprint in id does NOT match fingerprint from remote key' do
885-
it 'works' do
885+
it 'applies without error' do
886886
apply_manifest(fingerprint_does_not_match_pp, expect_failures: true) do |r|
887887
expect(r.stderr).to match(%r{don't match})
888888
end

0 commit comments

Comments
 (0)