Sha256: 16ef2c4e899d2b8089a99fcadc2ce8d73ddec443a21a0382df12421b4eb2d7be
Contents?: true
Size: 423 Bytes
Versions: 5
Compression:
Stored size: 423 Bytes
Contents
gem "minitest" require 'minitest/spec' require "minitest/autorun" require "rack/svelte" require 'rack/mock' #require 'FileUtils' unless Object.const_defined?('FileUtils') def get_response(path, body, content_type = 'text/html', options = {}) app = Rack::Builder.new do use Rack::Svelte, options run lambda {|env| [200, {'Content-Type' => content_type}, [body]]} end Rack::MockRequest.new(app).get(path) end
Version data entries
5 entries across 5 versions & 1 rubygems