1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
sinatra/test/event_context_test.rb
Blake Mizerany d9cad760a2 throw :halt
2007-11-28 02:55:19 -08:00

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