spec/integration/default_spec.rb in itamae-1.9.11 vs spec/integration/default_spec.rb in itamae-1.9.12

- old
+ new

@@ -77,42 +77,38 @@ it { should_not be_file } end describe file('/tmp/http_request.html') do it { should be_file } - its(:content) { should match(/"from": "itamae"/) } + its(:content) { should match(/"from":\s*"itamae"/) } end describe file('/tmp/http_request_delete.html') do it { should be_file } - its(:content) { should match(/"from": "itamae"/) } + its(:content) { should match(/"from":\s*"itamae"/) } end describe file('/tmp/http_request_post.html') do it { should be_file } - its(:content) do - should match(/"from": "itamae"/) - should match(/"love": "sushi"/) - end + its(:content) { should match(/"from":\s*"itamae"/) } + its(:content) { should match(/"love":\s*"sushi"/) } end describe file('/tmp/http_request_put.html') do it { should be_file } - its(:content) do - should match(/"from": "itamae"/) - should match(/"love": "sushi"/) - end + its(:content) { should match(/"from":\s*"itamae"/) } + its(:content) { should match(/"love":\s*"sushi"/) } end describe file('/tmp/http_request_headers.html') do it { should be_file } - its(:content) { should match(/"User-Agent": "Itamae"/) } + its(:content) { should match(/"User-Agent":\s*"Itamae"/) } end describe file('/tmp/http_request_redirect.html') do it { should be_file } - its(:content) { should match(/"from": "itamae"/) } + its(:content) { should match(/"from":\s*"itamae"/) } end describe file('/tmp/notifies') do it { should be_file } its(:content) { should eq("2431") } @@ -128,15 +124,29 @@ its(:content) do 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 2 - end -end +# FIXME: cron service is not running in docker... +# +# root@3450c6da6ea5:/# ps -C cron +# PID TTY TIME CMD +# root@3450c6da6ea5:/# service cron start +# Rather than invoking init scripts through /etc/init.d, use the service(8) +# utility, e.g. service cron start +# +# Since the script you are attempting to invoke has been converted to an +# Upstart job, you may also use the start(8) utility, e.g. start cron +# root@3450c6da6ea5:/# ps -C cron +# PID TTY TIME CMD +# root@3450c6da6ea5:/# + +# describe file('/tmp/cron_running') do +# it { should be_file } +# its(:content) do +# 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