test/spec_rack_builder.rb in rack-0.9.1 vs test/spec_rack_builder.rb in rack-1.0.0
- old
+ new
@@ -33,11 +33,11 @@
use Rack::ShowExceptions
use Rack::Auth::Basic do |username, password|
'secret' == password
end
- run lambda { |env| [200, {}, 'Hi Boss'] }
+ run lambda { |env| [200, {}, ['Hi Boss']] }
end
response = Rack::MockRequest.new(app).get("/")
response.should.be.client_error
response.status.should.equal 401
@@ -67,10 +67,10 @@
@called = 0
end
def call(env)
raise "bzzzt" if @called > 0
@called += 1
- [200, {'Content-Type' => 'text/plain'}, 'OK']
+ [200, {'Content-Type' => 'text/plain'}, ['OK']]
end
end
use Rack::ShowExceptions
run AppClass.new