Sha256: 74cd7d81db709c5261c6109c8799eec7239519ded19dbad7401bc2df05587265
Contents?: true
Size: 420 Bytes
Versions: 3
Compression:
Stored size: 420 Bytes
Contents
require File.expand_path("helper", File.dirname(__FILE__)) test "composing on top of a PATH" do Services = Cuba::Ron.new { on "services/:id" do |id| res.write "View #{id}" end } Cuba.define do on "provider" do run Services end end env = { "SCRIPT_NAME" => "/", "PATH_INFO" => "/provider/services/101" } _, _, resp = Cuba.call(env) assert_equal ["View 101"], resp.body end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cuba-2.0.1 | test/composition.rb |
cuba-2.0.0 | test/composition.rb |
cuba-2.0.0.rc3 | test/composition.rb |