test/request_test.rb in sinatra-1.2.0 vs test/request_test.rb in sinatra-1.2.1
- old
+ new
@@ -36,10 +36,10 @@
request = Sinatra::Request.new(
'REQUEST_METHOD' => 'PUT',
'CONTENT_TYPE' => 'application/x-www-form-urlencoded',
'rack.input' => StringIO.new('foo=bar')
)
- params = Sinatra::Base.new.send(:indifferent_hash).replace(request.params)
+ params = Sinatra::Base.new!.send(:indifferent_hash).replace(request.params)
dumped = Marshal.dump(request.params)
assert_equal 'bar', Marshal.load(dumped)['foo']
end
end