Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
shells
signup-site
Commits
9f757005
Commit
9f757005
authored
Jul 15, 2017
by
Cool Fire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some tests for newly introduced pages
parent
937a01c3
Pipeline
#321
passed with stages
in 1 minute and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
test.rb
test.rb
+22
-1
No files found.
test.rb
View file @
9f757005
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment