Commit 9f757005 authored by Cool Fire's avatar Cool Fire

Add some tests for newly introduced pages

parent 937a01c3
Pipeline #321 passed with stages
in 1 minute and 36 seconds
......@@ -8,7 +8,7 @@ def app
SignupSite
end
describe 'SignupSite main page' do
describe 'SignupSite' do
it 'should return HTML' do
get '/'
last_response.body.must_include '<!DOCTYPE html>'
......@@ -18,4 +18,25 @@ describe 'SignupSite main page' do
get '/'
last_response.body.must_include 'Welcome to the Insomnia 24/7 shells signup'
end
it 'should display info on the landing page' do
get '/'
last_response.body.must_include 'About our shells'
end
it 'should return invite code form' do
get '/enter-code'
last_response.body.must_include 'Invite code'
end
it 'should display reasons info on details form page' do
get '/enter-details'
last_response.body.must_include 'Specifying your reasons'
end
it 'should return details form' do
get '/enter-details'
last_response.body.must_include 'User name'
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment