blob: 9353cd18d0c866c88db6ce5e085dab5417757456 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
require 'spec_helper'
describe Zero::Request::Accept, '#encoding' do
subject { Zero::Request::Accept.new(env) }
let(:encoding) { 'en_US' }
let(:env) { EnvGenerator.get('/foo', {'HTTP_ACCEPT_ENCODING' => encoding}) }
it 'sets the encoding to the given value' do
subject.encoding.preferred.should eq('en_US')
end
end
|