Sha256: 0b3f6f48ddcd8b4a8d1ba11dbef3c948cb1eeb8277159e5746ae16b75fc7d501

Contents?: true

Size: 386 Bytes

Versions: 25

Compression:

Stored size: 386 Bytes

Contents

require File.expand_path("helper", File.dirname(__FILE__))

setup do
  Cuba.define do
    on "styles" do
      on extension("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_response resp, ["reset"]
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
cuba-3.0.1.rc1 test/extension.rb
cuba-3.0.0 test/extension.rb
cuba-3.0.0.rc5 test/extension.rb
cuba-3.0.0.rc4 test/extension.rb
cuba-3.0.0.rc3 test/extension.rb