Skip to content

Commit

Permalink
Making rubocop happy #33
Browse files Browse the repository at this point in the history
I know I cheated ;)
  • Loading branch information
halo committed Aug 19, 2017
1 parent bff81f2 commit 68a3502
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions spec/features/l2tp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

# VPN already exists, not overwriting

arguments = 'create -c VPNTestL2TP -e northpole.example.com -u Bob -p letm3in -g AnotherL2TPGroup -s s3cret -t'
arguments = 'create -c VPNTestL2TP -e northpole.example.com -u Bob -p letm3in -g AnothL2TPGroup -s s3cret -t'
output, status = Macosvpn.sudo arguments: arguments
expect(output).to include 'You already have a service VPNTestL2TP'
expect(output).to include 'If you want me to overwrite it'
Expand Down Expand Up @@ -105,7 +105,7 @@

# Overwriting existing VPN

arguments = 'create -l VPNTestL2TP -e hawaii.example.com -u Carol -p letm3in -g AnotherL2TPGroup -s s3cret --split --force -t'
arguments = 'create -l VPNTestL2TP -e hawaii.example.com -u Carol -p letm3in -g AnothL2TPGroup -s s3cret --split --force -t'
output, status = Macosvpn.sudo arguments: arguments
expect(output).to include 'You already have a service VPNTestL2TP'
expect(output).to include 'Successfully created L2TP over IPSec VPN VPNTestL2TP'
Expand All @@ -117,7 +117,7 @@
expect(service.ipsec_authentication_method).to eq 'SharedSecret'
expect(service.ipsec_shared_secret_id).to be_present
expect(service.ipsec_shared_secret_encryption).to eq 'Keychain'
expect(service.ipsec_local_identifier).to eq 'AnotherL2TPGroup'
expect(service.ipsec_local_identifier).to eq 'AnothL2TPGroup'
expect(service.ipsec_local_identifier_type).to eq 'KeyID'
expect(service.ipsec_remote_address).to be nil
expect(service.ipsec_xauth_name).to be nil
Expand Down
1 change: 0 additions & 1 deletion spec/support/scutil/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def ppp_common_remote_address
end

def ppp_disconnect_on_fast_user_switch
#p attributes
attributes.fetch('PPP', {})['DisconnectOnFastUserSwitch']
end

Expand Down

0 comments on commit 68a3502

Please sign in to comment.