summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:27:20 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:27:20 -0800
commit85d2c6773d635c57b00b2649eab19a34c8a4ffdf (patch)
tree269dbebc32230b4e8b0f1a27177d0f12d505ea38
parentdb9f8dce667916cd6575d2894c8ca25006138836 (diff)
downloadchef-85d2c6773d635c57b00b2649eab19a34c8a4ffdf.tar.gz
the perils of regexp-based code editing
-rw-r--r--spec/support/mock/platform.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/mock/platform.rb b/spec/support/mock/platform.rb
index 46e8c74d72..df90d1eda2 100644
--- a/spec/support/mock/platform.rb
+++ b/spec/support/mock/platform.rb
@@ -5,7 +5,7 @@
# 'i386-mingw32' (windows) or 'x86_64-darwin11.2.0' (unix). Usueful for
# testing code that mixes in platform specific modules like +Chef::Mixin::Securable+
# or +Chef::FileAccessControl+
-def platform_double(platform = :unix, &block)
+def platform_mock(platform = :unix, &block)
Chef::Platform.stub(:windows?).and_return(platform == :windows ? true : false)
ENV['SYSTEMDRIVE'] = (platform == :windows ? 'C:' : nil)
if block_given?