summaryrefslogtreecommitdiff
path: root/tests/white-box/network.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-06-21 17:38:00 -0700
committerelijah <elijah@riseup.net>2016-06-21 17:38:00 -0700
commit7818abd6a89a882cabb3d2a14a572308d9e959ff (patch)
tree89927201e4406af2334c4ef97cbe58750426ef3f /tests/white-box/network.rb
parent3df7a57d866cf1e6eda9bb9e3fe19c7387ec6c1d (diff)
minor ruby linting
Diffstat (limited to 'tests/white-box/network.rb')
-rw-r--r--tests/white-box/network.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/white-box/network.rb b/tests/white-box/network.rb
index 436fc8a8..a08cdfbe 100644
--- a/tests/white-box/network.rb
+++ b/tests/white-box/network.rb
@@ -65,7 +65,7 @@ class Network < LeapTest
end
def test_03_Is_shorewall_running?
- ignore unless File.exists?('/sbin/shorewall')
+ ignore unless File.exist?('/sbin/shorewall')
assert_run('/sbin/shorewall status')
pass
end
@@ -75,7 +75,7 @@ class Network < LeapTest
def test_04_Are_server_certificates_valid?
cert_paths = ["/etc/x509/certs/leap_commercial.crt", "/etc/x509/certs/leap.crt"]
cert_paths.each do |cert_path|
- if File.exists?(cert_path)
+ if File.exist?(cert_path)
cert = OpenSSL::X509::Certificate.new(File.read(cert_path))
if Time.now > cert.not_after
fail "The certificate #{cert_path} expired on #{cert.not_after}"