Sha256: 5649ebfe2b075f327c36cd4113a71dab5f9951ded1a5883f11bb69f62d98f339
Contents?: true
Size: 273 Bytes
Versions: 2
Compression:
Stored size: 273 Bytes
Contents
require File.dirname(__FILE__) + '/helper' describe 'Sinatra::Request' do it 'responds to #user_agent' do request = Sinatra::Request.new({'HTTP_USER_AGENT' => 'Test'}) assert request.respond_to?(:user_agent) assert_equal 'Test', request.user_agent end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
bmizerany-sinatra-0.8.9 | test/request_test.rb |
sinatra-sinatra-0.8.9 | test/request_test.rb |