Skip to content

Commit

Permalink
make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jun 3, 2020
1 parent b227587 commit 1582a4d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
4 changes: 3 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ Metrics/AbcSize:
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 300
Max: 120
Exclude: # exclude rspec tests
- "test/**/*.rb"

# Offense count: 18
# Configuration parameters: CountBlocks.
Expand Down
42 changes: 20 additions & 22 deletions test/root_part_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,10 @@
before do
allow(File).to receive(:exist?).and_return(true)
allow(File).to receive(:read).and_return(<<~CONTENT
<pam_mount>
</pam_mount>
CONTENT
)
<pam_mount>
</pam_mount>
CONTENT
)
end

it "returns false" do
Expand All @@ -356,24 +356,22 @@
before do
allow(File).to receive(:exist?).and_return(true)
allow(File).to receive(:read).and_return(<<~CONTENT
<pam_mount>
<!-- Generic encrypted partition example -->
<volume user="USERNAME" fstype="auto" path="/dev/sdaX" mountpoint="/home" options="fsck,noatime" />
<!-- Example using CIFS -->
<volume
fstype="cifs"
server="server.example.com"
path="share_name"
mountpoint="~/mnt/share_name"
uid="10000-19999"
options="sec=krb5i,vers=3.0,cruid=%(USERUID)"
/>
<mkmountpoint enable="1" remove="true" />
</pam_mount>
CONTENT
)
<pam_mount>
<!-- Generic encrypted partition example -->
<volume user="USERNAME" fstype="auto" path="/dev/sdaX" mountpoint="/home" options="fsck,noatime" />
<!-- Example using CIFS -->
<volume
fstype="cifs"
server="server.example.com"
path="share_name"
mountpoint="~/mnt/share_name"
uid="10000-19999"
options="sec=krb5i,vers=3.0,cruid=%(USERUID)"
/>
<mkmountpoint enable="1" remove="true" />
</pam_mount>
CONTENT
)
end

it "returns true" do
Expand Down

0 comments on commit 1582a4d

Please sign in to comment.