spec/integration/default_spec.rb in itamae-1.3.4 vs spec/integration/default_spec.rb in itamae-1.3.5

- old
+ new

@@ -161,15 +161,22 @@ end describe file('/tmp/file_edit_sample') do it { should be_file } its(:content) { should eq("Hello, Itamae") } - it { should be_mode 444 } - it { should be_owned_by "itamae" } - it { should be_grouped_into "itamae" } + it { should be_mode 400 } + it { should be_owned_by "itamae2" } + it { should be_grouped_into "itamae2" } end describe file('/home/itamae2') do it { should be_directory } it { should be_owned_by "itamae2" } it { should be_grouped_into "itamae2" } +end + +describe file('/tmp/file_create_without_content') do + its(:content) { should eq("Hello, World") } + it { should be_mode 600 } + it { should be_owned_by "itamae" } + it { should be_grouped_into "itamae" } end