diff options
author | AJ Christensen <aj@junglist.gen.nz> | 2008-10-01 15:22:33 +1300 |
---|---|---|
committer | AJ Christensen <aj@junglist.gen.nz> | 2008-10-01 15:22:33 +1300 |
commit | 8960f3cf02097fd6b859d4ad06bf559fec802b04 (patch) | |
tree | 51fa76ad6f52105eeeb5a9b24551a60414e81856 /spec | |
parent | 99c9c0f6f530432be115fc8bc1c701c043ee0974 (diff) | |
download | chef-8960f3cf02097fd6b859d4ad06bf559fec802b04.tar.gz |
Pattern should default to service_name, updated spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/service_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/unit/resource/service_spec.rb b/spec/unit/resource/service_spec.rb index ec6f85be23..f5941f89ae 100644 --- a/spec/unit/resource/service_spec.rb +++ b/spec/unit/resource/service_spec.rb @@ -29,10 +29,14 @@ describe Chef::Resource::Service do @resource.should be_a_kind_of(Chef::Resource::Service) end - it "should set the package_name to the first argument to new" do + it "should set the service_name to the first argument to new" do @resource.service_name.should eql("chef") end + it "should set the pattern to be the service name by default" do + @resource.pattern.should eql("chef") + end + it "should accept a string for the service name" do @resource.service_name "something" @resource.service_name.should eql("something") |