spec/integration/default_spec.rb in itamae-1.0.0.beta3 vs spec/integration/default_spec.rb in itamae-1.0.0.beta4
- old
+ new
@@ -26,10 +26,11 @@
end
describe file('/tmp/file') do
it { should be_file }
its(:content) { should match(/Hello World/) }
+ it { should be_mode 777 }
end
describe file('/tmp/execute') do
it { should be_file }
its(:content) { should match(/Hello Execute/) }
@@ -54,16 +55,22 @@
end
describe file('/tmp/cron_stopped') do
it { should be_file }
its(:content) do
- expect(subject.content.lines.size).to eq 0
+ expect(subject.content.lines.size).to eq 1
end
end
describe file('/tmp/cron_running') do
it { should be_file }
its(:content) do
- expect(subject.content.lines.size).to eq 1
+ expect(subject.content.lines.size).to eq 2
end
end
+describe file('/tmp-link') do
+ it { should be_linked_to '/tmp' }
+ its(:content) do
+ expect(subject.content.lines.size).to eq 0
+ end
+end