Sha256: dd54e06f1c8f25d058b0febf0864695ae38a6097dad3361d6a4f071190531af5
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
require File.expand_path("helper", File.dirname(__FILE__)) test "set status and headers through helpers" do Cuba.define do helpers do def upperize(string) string.upcase end end on "users" do as do "I will shout: #{upperize("hello")}" end end end env = { "SCRIPT_NAME" => "/", "PATH_INFO" => "/users" } _, _, resp = Cuba.call(env) assert_equal ["I will shout: HELLO"], resp.body end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cuba-sugar-0.2.1 | test/helpers.rb |