Sha256: a31821f3a76a85a2286597b0e3ae2b2abab9425a0da023ba5ef4a153e0ea2329
Contents?: true
Size: 644 Bytes
Versions: 11
Compression:
Stored size: 644 Bytes
Contents
require_relative "../spec_helper" describe "direct_call plugin" do it "should have .call skip middleware" do app{'123'} app.use(Class.new do def initialize(_) end def call(env) [200, {}, ['321']] end end) body.must_equal '321' app.plugin :direct_call body.must_equal '123' end deprecated "should work when #call is overridden" do app.class_eval do def call; super end route{'123'} end app.use(Class.new do def initialize(_) end def call(env) [200, {}, ['321']] end end) body.must_equal '321' app.plugin :direct_call body.must_equal '123' end end
Version data entries
11 entries across 11 versions & 1 rubygems