Sha256: 0fb1785d7fd4a55b9ac255c1e5eee0cfd4bf25503cd9ae3a332cb10c6973fb96
Contents?: true
Size: 725 Bytes
Versions: 7
Compression:
Stored size: 725 Bytes
Contents
require 'spec_helper' require_relative '../../../lib/locomotive/steam/middlewares/threadsafe' require_relative '../../../lib/locomotive/steam/middlewares/helpers' require_relative '../../../lib/locomotive/steam/middlewares/renderer' describe Locomotive::Steam::Middlewares::Renderer do let(:app) { ->(env) { [200, env, 'app'] }} let :middleware do Locomotive::Steam::Middlewares::Renderer.new(app) end describe 'missing 404 page' do subject do middleware.call env_for('http://www.example.com', { 'steam.page' => nil }) end specify 'return 200' do code, headers, response = subject expect(code).to eq(404) expect(response).to eq(['Missing 404 page']) end end end
Version data entries
7 entries across 7 versions & 1 rubygems