Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
shells
signup-site
Commits
8f2effc2
Commit
8f2effc2
authored
Jul 15, 2017
by
Cool Fire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests
parent
c32cc69f
Pipeline
#318
failed with stages
in 1 minute and 7 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
.gitlab-ci.yml
.gitlab-ci.yml
+3
-2
test.rb
test.rb
+21
-0
test_helper.rb
test_helper.rb
+7
-0
No files found.
.gitlab-ci.yml
View file @
8f2effc2
...
@@ -11,7 +11,7 @@ syntax_ruby:
...
@@ -11,7 +11,7 @@ syntax_ruby:
-
find . -name '*\.rb' -exec bash -c 'echo -ne "{}\t\t\t" && ruby -c {}' \;
-
find . -name '*\.rb' -exec bash -c 'echo -ne "{}\t\t\t" && ruby -c {}' \;
syntax_erb
:
syntax_erb
:
stage
:
syntax
stage
:
syntax
image
:
ru
y
b:2.4
image
:
rub
y
:2.4
script
:
script
:
-
find . -name '*\.erb' -exec bash -c 'echo -ne "{}\t\t\t" && erb -P -x {} | ruby -c' \;
-
find . -name '*\.erb' -exec bash -c 'echo -ne "{}\t\t\t" && erb -P -x {} | ruby -c' \;
lint_ruby
:
lint_ruby
:
...
@@ -30,8 +30,9 @@ tests:
...
@@ -30,8 +30,9 @@ tests:
stage
:
testing
stage
:
testing
image
:
ruby:2.4
image
:
ruby:2.4
script
:
script
:
-
gem install rack-test --no-ri --no-rdoc
-
bundle install
-
bundle install
-
r
ake
test
-
r
uby
test
.rb
deploy
:
deploy
:
stage
:
deploy
stage
:
deploy
image
:
ubuntu:16.04
image
:
ubuntu:16.04
...
...
test.rb
0 → 100644
View file @
8f2effc2
# frozen_string_literal: true
require
File
.
expand_path
'../test_helper.rb'
,
__FILE__
include
Rack
::
Test
::
Methods
def
app
SignupSite
end
describe
'SignupSite main page'
do
it
'should return HTML'
do
get
'/'
last_response
.
body
.
must_include
'<!DOCTYPE html>'
end
it
'should return the landing page'
do
get
'/'
last_response
.
body
.
must_include
'test'
end
end
test_helper.rb
0 → 100644
View file @
8f2effc2
# frozen_string_literal: true
ENV
[
'RACK_ENV'
]
=
'test'
require
'minitest/autorun'
require
'rack/test'
require
File
.
expand_path
'../signup_site.rb'
,
__FILE__
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