Sha256: ff2a83b5de59caec04a6e46a18dda6438c952d3a9fe80c6df445b9fb615bd8c9

Contents?: true

Size: 264 Bytes

Versions: 30

Compression:

Stored size: 264 Bytes

Contents

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

Version data entries

30 entries across 30 versions & 7 rubygems

Version Path
relevance-castronaut-0.5.3 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.5.4 vendor/sinatra/test/event_context_test.rb
rtomayko-sinatra-0.3.0 test/event_context_test.rb
rtomayko-sinatra-0.3.1 test/event_context_test.rb
rtomayko-sinatra-0.3.2 test/event_context_test.rb
rtomayko-sinatra-0.3.3 test/event_context_test.rb
sinatra-0.3.3 test/event_context_test.rb
sinatra-0.3.0 test/event_context_test.rb
sinatra-0.3.1 test/event_context_test.rb
sinatra-0.3.2 test/event_context_test.rb