Add tests for the chatbot.

This commit is contained in:
James Barnett 2017-06-13 12:24:44 -05:00
parent 15e9daaf29
commit f77569aa3d
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# Tests for the custom chatbot
describe service('chatbot') do
it { should be_running }
it { should be_enabled }
end
# Make sure the landing page comes up
describe command('curl http://localhost/chat/') do
its('stdout') { should match /Please enter your name to continue/ }
end
#TODO: Add tests that make sure the chatbot responds to chat messages