Sha256: a38db9ed4533bb9652ee5176bbb6ea7727243934a199a91b252de4f85f4040a8
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
require "test/unit" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roger-1.2.2 | test/unit/rack/roger_test.rb |
roger-1.2.1 | test/unit/rack/roger_test.rb |