Updated rails_service.rb

This commit is contained in:
Chan9390 2017-07-19 18:02:59 +05:30
parent 6acb359c09
commit 06cba9d340
No known key found for this signature in database
GPG Key ID: 6CC28422F21ED4FA

View File

@ -10,11 +10,12 @@ control "rails_service" do
it { should exist }
end
describe command('netstat -aob | findstr :3000') do
its('stdout') { should match "LISTENING" }
describe port('3000') do
it { should be_listening }
end
describe command('schtasks /Query /tn rails') do
its('stdout') { should match "Ready" }
describe windows_task('rails') do
it { should exist }
it { should be_enabled }
end
end