Commit d967ab5c authored by Cool Fire's avatar Cool Fire
Browse files

Load content from content yaml

parent 8f2effc2
Pipeline #319 passed with stages
in 1 minute and 51 seconds
......@@ -25,7 +25,7 @@ lint_yaml:
image: ruby:2.4
- gem install yamllint --no-ri --no-rdoc
- yamllint *.yaml
- yamllint content/*.yaml
stage: testing
image: ruby:2.4
body: >
Welcome to the Insomnia 24/7 shells signup page!
Please choose below if you already have an invite code or not.
# frozen_string_literal: true
require 'sinatra/base'
require 'yaml'
# Main class for signup site
class SignupSite < Sinatra::Base
......@@ -8,7 +9,8 @@ class SignupSite < Sinatra::Base
set :title, 'Shell signup - Insomnia 24/7'
get '/' do
@body = 'test'
landing = YAML.load_file('content/landing.yaml')
@body = landing['body']
erb :index
......@@ -16,6 +16,6 @@ describe 'SignupSite main page' do
it 'should return the landing page' do
get '/'
last_response.body.must_include 'test'
last_response.body.must_include 'Welcome to the Insomnia 24/7 shells signup page!'
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