summaryrefslogtreecommitdiff
path: root/spec/unit/mixin/securable_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/mixin/securable_spec.rb')
-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 bbbd6bab84..b672dc19f5 100644
--- a/spec/unit/mixin/securable_spec.rb
+++ b/spec/unit/mixin/securable_spec.rb
@@ -53,8 +53,8 @@ describe Chef::Mixin::Securable do
end
it "should accept group/owner names with spaces and backslashes" do
- expect { @securable.group 'test\ group' }.not_to raise_error
- expect { @securable.owner 'test\ group' }.not_to raise_error
+ expect { @securable.group "test\\ group" }.not_to raise_error
+ expect { @securable.owner "test\\ group" }.not_to raise_error
end
it "should accept group/owner names that are a single character or digit" do
@@ -186,7 +186,7 @@ describe Chef::Mixin::Securable do
end
it "should not accept a group name or id for group with spaces and multiple backslashes" do
- expect { @securable.group 'test\ \group' }.to raise_error(ArgumentError)
+ expect { @securable.group "test\\ \\group" }.to raise_error(ArgumentError)
end
it "should accept a unix file mode in string form as an octal number" do