test.rb 429 Bytes
Newer Older
Cool Fire's avatar
Cool Fire committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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 '/'
Cool Fire's avatar
Cool Fire committed
19
    last_response.body.must_include 'Welcome to the Insomnia 24/7 shells signup page!'
Cool Fire's avatar
Cool Fire committed
20
21
  end
end