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-4.0.3 test/extension.rb
cuba-4.0.1 test/extension.rb
cuba-4.0.0 test/extension.rb
cuba-3.9.3 test/extension.rb
cuba-3.9.2 test/extension.rb
cuba-3.9.1 test/extension.rb
cuba-3.9.0 test/extension.rb
cuba-3.8.1 test/extension.rb
cuba-3.8.0 test/extension.rb
cuba-3.7.0 test/extension.rb
cuba-3.6.0 test/extension.rb
cuba-3.5.0 test/extension.rb
cuba-3.4.0 test/extension.rb
cuba-3.3.0 test/extension.rb
cuba-3.2.0 test/extension.rb
cuba-3.1.1 test/extension.rb
cuba-3.1.0 test/extension.rb
cuba-3.1.0.rc2 test/extension.rb
cuba-3.1.0.rc1 test/extension.rb
cuba-3.0.1.rc2 test/extension.rb