spec/integration/recipes/file_hook_spec.rb in rundock-0.4.15 vs spec/integration/recipes/file_hook_spec.rb in rundock-0.4.16

- old
+ new

@@ -1,28 +1,13 @@ require 'spec_helper' -describe file('/var/tmp/hello_rundock_from_file_hook_one_scenario') do +describe file('/var/tmp/hello_rundock_from_file_hook_inner_one_scenario') do it { should be_file } - its(:content) { should match(/hookname:file_one /) } + its(:content) { should match(/hookname:file_hook_one /) } + its(:content) { should match(/DEBUG/) } end -describe file('/var/tmp/hello_rundock_from_file_hook_array_1_scenario') do +describe file('/var/tmp/hello_rundock_from_file_hook_inner_two_scenario') do it { should be_file } - its(:content) { should match(/anyhost-01/) } - its(:content) { should match(/hookname:file_array_1 /) } -end - -describe file('/var/tmp/hello_rundock_from_file_hook_array_2_scenario') do - it { should be_file } - its(:content) { should match(/anyhost-01/) } - its(:content) { should match(/hookname:file_array_2 /) } -end - -describe file('/var/tmp/hello_rundock_from_file_hook_all_1_scenario') do - it { should be_file } - its(:content) { should match(/hookname:file_all_1 /) } -end - -describe file('/var/tmp/hello_rundock_from_file_hook_all_2_scenario') do - it { should be_file } - its(:content) { should match(/hookname:file_all_2 /) } + its(:content) { should match(/hookname:file_hook_two /) } + its(:content) { should match(/DEBUG/) } end