spec/integration/recipes/default.rb in itamae-1.0.0.beta37 vs spec/integration/recipes/default.rb in itamae-1.0.0.beta38

- old
+ new

@@ -160,15 +160,15 @@ notifies :create, "file[put file in default2.rb]" end ##### -file "/tmp/should_not_exist" do +file "/tmp/never_exist3" do action :create end -file "/tmp/should_not_exist" do +file "/tmp/never_exist3" do action :delete end ##### @@ -176,7 +176,22 @@ execute "echo 'name:#{params[:name]},key:#{params[:key]}' > /tmp/created_by_definition" end definition_example "name" do key 'value' +end + +##### + +file "/tmp/never_exist4" do + action :nothing +end + +file "/tmp/file1" do + content "Hello, World" +end + +file "/tmp/file1" do + content "Hello, World" + notifies :create, "file[/tmp/never_exist4]" end