Sha256: 9ac4b3a65d14b0ebf2ab12e69e8fcc1785a1710a636987fbb631fc4811f133b4
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
require File.expand_path("helper", File.dirname(__FILE__)) setup do Cuba.define do on "styles" do on extname("css") do |file| res.write file end end end { "SCRIPT_NAME" => "/", "PATH_INFO" => "/styles" } end test "/styles/reset.css" do |env| env["PATH_INFO"] += "/reset.css" _, _, resp = Cuba.call(env) assert_equal ["reset"], resp.body end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cuba-2.0.0.rc1 | test/extname.rb |