Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 12 lines (10 sloc) 0.293 kB
a734cf3 @rtomayko I knew I shoulda taken that left turn at Hoboken
rtomayko authored
1 require 'test/spec'
2 require 'sinatra/base'
3 require 'sinatra/test'
4
5 describe 'Sinatra::Request' do
6 it 'responds to #user_agent' do
7 request = Sinatra::Request.new({'HTTP_USER_AGENT' => 'Test'})
8 request.should.respond_to :user_agent
9 request.user_agent.should.equal 'Test'
10 end
11 end
Something went wrong with that request. Please try again.