forked from martinhoefling/letsencrypt-formula
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rubocop): add fixes using
rubocop --safe-auto-correct
- Loading branch information
Showing
3 changed files
with
46 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
describe file('/opt/letsencrypt') do | ||
it { should be_directory } | ||
it { should be_owned_by 'root' } | ||
it { should be_grouped_into 'root' } | ||
it { should be_readable } | ||
its('size') { should be > 25 } | ||
it { should be_directory } | ||
it { should be_owned_by 'root' } | ||
it { should be_grouped_into 'root' } | ||
it { should be_readable } | ||
its('size') { should be > 25 } | ||
end | ||
|
||
describe file('/etc/letsencrypt/cli.ini') do | ||
it { should be_file } | ||
it { should be_owned_by 'root' } | ||
it { should be_grouped_into 'root' } | ||
it { should be_readable } | ||
its('size') { should be > 1 } | ||
its('content') { should match 'server = https://acme-staging.api.letsencrypt.org/directory' } | ||
its('content') { should match 'authenticator = standalone' } | ||
it { should be_file } | ||
it { should be_owned_by 'root' } | ||
it { should be_grouped_into 'root' } | ||
it { should be_readable } | ||
its('size') { should be > 1 } | ||
its('content') { should match 'server = https://acme-staging.api.letsencrypt.org/directory' } | ||
its('content') { should match 'authenticator = standalone' } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters