diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-13 08:07:08 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-13 08:07:08 -0800 |
commit | 8e1e75da57b3c5d56abc180238440cf4e411d3ae (patch) | |
tree | e62802d28c41124f9db3be507ff37e5df8d95996 /spec | |
parent | 5e5cbe6df61ae69b9a5942ce51a7ad1f8bb6ea3a (diff) | |
download | chef-8e1e75da57b3c5d56abc180238440cf4e411d3ae.tar.gz |
yet more lint copslcg/lint-cops-again
fixes:
Lint/AmbiguousOperator
Lint/DuplicateMethods
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/mixin/securable_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/mixin/securable_spec.rb b/spec/unit/mixin/securable_spec.rb index 714d6dedae..33d5eb2141 100644 --- a/spec/unit/mixin/securable_spec.rb +++ b/spec/unit/mixin/securable_spec.rb @@ -1,7 +1,7 @@ # encoding: UTF-8 # # Author:: Mark Mzyk (<mmzyk@opscode.com>) -# Copyright:: Copyright (c) 2011 Opscode, Inc. +# Copyright:: Copyright (c) 2011-2016 Chef Software, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -227,9 +227,9 @@ describe Chef::Mixin::Securable do expect { @securable.mode 0111 }.not_to raise_error expect { @securable.mode 73 }.not_to raise_error - expect { @securable.mode -01 }.to raise_error(ArgumentError) + expect { @securable.mode(-01) }.to raise_error(ArgumentError) expect { @securable.mode 010000 }.to raise_error(ArgumentError) - expect { @securable.mode -1 }.to raise_error(ArgumentError) + expect { @securable.mode(-1) }.to raise_error(ArgumentError) expect { @securable.mode 4096 }.to raise_error(ArgumentError) end |