Sha256: 56da2dbb34b3e9e7c9c25c0a5557adea5d013dc9c162e46a6ab3460fa77a7ac7
Contents?: true
Size: 580 Bytes
Versions: 5
Compression:
Stored size: 580 Bytes
Contents
require "test_helper" require File.dirname(__FILE__) + "../../../../lib/roger/rack/roger" module Roger module Rack # Test Roger Rack class ServerTest < ::Test::Unit::TestCase def setup @project = Project.new(File.dirname(__FILE__) + "/../../project", mockupfile_path: false) @app = ::Roger::Rack::Roger.new(@project) end def test_middleware_renders_template request = ::Rack::MockRequest.new(@app) response = request.get("/formats/erb") assert response.body.include?("ERB format") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems