Sha256: 1600886dc907e0703e0f4dd4ae57511c8e4c014ea18f4acaf0b965c765657c30
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
require File.expand_path("spec_helper", File.dirname(File.dirname(__FILE__))) describe "delegate plugin" do it "adds request_delegate and response_delegate class methods for delegating" do app(:bare) do plugin :delegate request_delegate :root response_delegate :headers route do root do headers['Content-Type'] = 'foo' end end end header('Content-Type').should == 'foo' status('/foo').should == 404 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roda-1.2.0 | spec/plugin/delegate_spec.rb |