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
3mix-castronaut-0.5.0.2 vendor/sinatra/test/event_context_test.rb
Syd-sinatra-0.3.2 test/event_context_test.rb
bmizerany-sinatra-0.3.2 test/event_context_test.rb
masover-castronaut-0.4.4.4 vendor/sinatra/test/event_context_test.rb
masover-castronaut-0.4.4.5 vendor/sinatra/test/event_context_test.rb
masover-castronaut-0.5.0.1 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.2.0 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.2.5 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.3.0 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.3.5 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.3.6 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.4.1 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.4.2 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.4.3 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.4.4 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.4.5 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.4.6 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.5.0 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.5.1 vendor/sinatra/test/event_context_test.rb
relevance-castronaut-0.5.2 vendor/sinatra/test/event_context_test.rb