aboutsummaryrefslogtreecommitdiff
path: root/spec/unit/request/accept/encoding_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/request/accept/encoding_spec.rb')
-rw-r--r--spec/unit/request/accept/encoding_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/request/accept/encoding_spec.rb b/spec/unit/request/accept/encoding_spec.rb
index 89b968b..9353cd1 100644
--- a/spec/unit/request/accept/encoding_spec.rb
+++ b/spec/unit/request/accept/encoding_spec.rb
@@ -5,5 +5,7 @@ describe Zero::Request::Accept, '#encoding' do
let(:encoding) { 'en_US' }
let(:env) { EnvGenerator.get('/foo', {'HTTP_ACCEPT_ENCODING' => encoding}) }
- its(:encoding) { should be_an_instance_of(Zero::Request::AcceptType) }
+ it 'sets the encoding to the given value' do
+ subject.encoding.preferred.should eq('en_US')
+ end
end