Sha256: d2a86dc0f552e008c90e5d37eff1dbac01fbab7bbf51e6f16110ea8f8af9cf27
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true RSpec.describe "Static middleware", type: :integration do it "serves a public file" do with_project do write "public/static.txt", "Static file" RSpec::Support::Env["HANAMI_ENV"] = "production" RSpec::Support::Env["DATABASE_URL"] = "sqlite://#{Pathname.new('db').join('bookshelf.sqlite')}" RSpec::Support::Env["SERVE_STATIC_ASSETS"] = "true" RSpec::Support::Env["SMTP_HOST"] = "localhost" RSpec::Support::Env["SMTP_PORT"] = "25" server do visit "/static.txt" expect(page.body).to include("Static file") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems