summaryrefslogtreecommitdiff
path: root/spec/unit/resource/link_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:30:14 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:30:14 -0800
commitb593ff07bb7e7abf56279575e1bd8af99c7dc00f (patch)
tree23712a6ac84a5bdf268eb4da0c7b7d46c04ef000 /spec/unit/resource/link_spec.rb
parent85d2c6773d635c57b00b2649eab19a34c8a4ffdf (diff)
downloadchef-b593ff07bb7e7abf56279575e1bd8af99c7dc00f.tar.gz
this test should have been failing
"root*goo" is now legal for username/groupname. not sure why this test was passing on rspec 2.13.x. changed the name to something which is guaranteed to be invalid.
Diffstat (limited to 'spec/unit/resource/link_spec.rb')
-rw-r--r--spec/unit/resource/link_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/unit/resource/link_spec.rb b/spec/unit/resource/link_spec.rb
index fc3f7ff41c..221617f9b3 100644
--- a/spec/unit/resource/link_spec.rb
+++ b/spec/unit/resource/link_spec.rb
@@ -44,7 +44,7 @@ describe Chef::Resource::Link do
if bad_value
lambda { @resource.action action }.should raise_error(ArgumentError)
else
- lambda { @resource.action action }.should_not raise_error(ArgumentError)
+ lambda { @resource.action action }.should_not raise_error
end
end
end
@@ -54,7 +54,7 @@ describe Chef::Resource::Link do
end
it "should accept a string as the link source via 'to'" do
- lambda { @resource.to "/tmp" }.should_not raise_error(ArgumentError)
+ lambda { @resource.to "/tmp" }.should_not raise_error
end
it "should not accept a Hash for the link source via 'to'" do
@@ -85,15 +85,15 @@ describe Chef::Resource::Link do
end
it "should accept a group name or id for group" do
- lambda { @resource.group "root" }.should_not raise_error(ArgumentError)
- lambda { @resource.group 123 }.should_not raise_error(ArgumentError)
- lambda { @resource.group "root*goo" }.should raise_error(ArgumentError)
+ lambda { @resource.group "root" }.should_not raise_error
+ lambda { @resource.group 123 }.should_not raise_error
+ lambda { @resource.group "root:goo" }.should raise_error(ArgumentError)
end
it "should accept a user name or id for owner" do
- lambda { @resource.owner "root" }.should_not raise_error(ArgumentError)
- lambda { @resource.owner 123 }.should_not raise_error(ArgumentError)
- lambda { @resource.owner "root*goo" }.should raise_error(ArgumentError)
+ lambda { @resource.owner "root" }.should_not raise_error
+ lambda { @resource.owner 123 }.should_not raise_error
+ lambda { @resource.owner "root:goo" }.should raise_error(ArgumentError)
end
describe "when it has to, link_type, owner, and group" do