spec/integration/default_spec.rb in itamae-1.9.13 vs spec/integration/default_spec.rb in itamae-1.10.0

- old
+ new

@@ -225,9 +225,45 @@ describe file('/tmp/remote_file_in_definition') do it { should be_file } its(:content) { should eq("definition_example\n") } end +describe file('/tmp/created_by_definition_2_created') do + it { should be_file } + its(:content) { should eq("name:created,key:value2,message:Hello, Itamae\n") } +end + +describe file('/tmp/remote_file_in_definition_2_created') do + it { should be_file } + its(:content) { should eq("definition_example_2\n") } +end + +describe file('/tmp/created_by_definition_2_not_created') do + it { should_not exist } +end + +describe file('/tmp/remote_file_in_definition_2_not_created') do + it { should_not exist } +end + +describe file('/tmp/created_by_definition_3_created') do + it { should be_file } + its(:content) { should eq("name:created,key:value3,message:Hello, Itamae\n") } +end + +describe file('/tmp/remote_file_in_definition_3_created') do + it { should be_file } + its(:content) { should eq("definition_example_3\n") } +end + +describe file('/tmp/created_by_definition_3_not_created') do + it { should_not exist } +end + +describe file('/tmp/remote_file_in_definition_3_not_created') do + it { should_not exist } +end + describe file('/tmp/multi_delayed_notifies') do it { should be_file } its(:content) { should eq("1\n2\n3\n4\n") } end