mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
15 lines
274 B
Ruby
15 lines
274 B
Ruby
require File.dirname(__FILE__) + '/helper'
|
|
|
|
context "EventContext" do
|
|
|
|
specify "DSLified setters" do
|
|
|
|
cx = Sinatra::EventContext.new(stub_everything, Rack::Response.new, {})
|
|
lambda {
|
|
cx.status 404
|
|
}.should.not.raise(ArgumentError)
|
|
|
|
end
|
|
|
|
end
|
|
|