summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-01-13 17:29:42 +0000
committerThom May <thom@may.lt>2016-01-13 17:29:42 +0000
commit6ff26d1cad9256b124157531e3b7b54ef63f85ff (patch)
tree6fa5e29d3e5a5f178f184921ea4e470e1ae3c5f4 /spec/unit
parentd0a9d75c7c80826a830c812ee15d1249553e4b43 (diff)
parent8e1e75da57b3c5d56abc180238440cf4e411d3ae (diff)
downloadchef-6ff26d1cad9256b124157531e3b7b54ef63f85ff.tar.gz
Merge pull request #4395 from chef/lcg/lint-cops-again
yet more lint cops
Diffstat (limited to 'spec/unit')
-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