summaryrefslogtreecommitdiff
path: root/spec/unit/resource/service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/service_spec.rb')
-rw-r--r--spec/unit/resource/service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource/service_spec.rb b/spec/unit/resource/service_spec.rb
index a94beece6b..24155e3b8f 100644
--- a/spec/unit/resource/service_spec.rb
+++ b/spec/unit/resource/service_spec.rb
@@ -62,7 +62,7 @@ describe Chef::Resource::Service do
it "does not accept a regexp for the service pattern" do
expect do
- resource.pattern /.*/
+ resource.pattern(/.*/)
end.to raise_error(ArgumentError)
end
@@ -89,7 +89,7 @@ describe Chef::Resource::Service do
it "does not accept a regexp for the init_command property" do
expect do
- resource.init_command /.*/
+ resource.init_command(/.*/)
end.to raise_error(ArgumentError)
end