summaryrefslogtreecommitdiff
path: root/spec/unit/mixin
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-01-13 08:07:08 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-01-13 08:07:08 -0800
commit8e1e75da57b3c5d56abc180238440cf4e411d3ae (patch)
treee62802d28c41124f9db3be507ff37e5df8d95996 /spec/unit/mixin
parent5e5cbe6df61ae69b9a5942ce51a7ad1f8bb6ea3a (diff)
downloadchef-8e1e75da57b3c5d56abc180238440cf4e411d3ae.tar.gz
yet more lint copslcg/lint-cops-again
fixes: Lint/AmbiguousOperator Lint/DuplicateMethods
Diffstat (limited to 'spec/unit/mixin')
-rw-r--r--spec/unit/mixin/securable_spec.rb6
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