Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 18, 2021
1 parent 39292f1 commit c2f81c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/security_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ def enabled?
it "does not write invalid values" do
Security.Settings["kernel.sysrq"] = "yes"
Security.Settings["net.ipv4.ip_forward"] = ""
expect(sysctl_config).to_not receive(:kernel_sysrq).with("yes")
expect(sysctl_config).to_not receive(:raw_forward_ipv4=).with("")
expect(sysctl_config).to_not receive(:kernel_sysrq)
expect(Security.write_kernel_settings).to eq(false)
end

Expand Down

0 comments on commit c2f81c1

Please sign in to comment.