Sha256: e421faae6f0c3572d64dbb46eae1e365d5c53a4487fc66cfa5a72dcfcd849e15
Contents?: true
Size: 584 Bytes
Versions: 2
Compression:
Stored size: 584 Bytes
Contents
# encoding: utf-8 # require 'spec_helper' describe Adapters::Rack::Base do before(:each) do @adapter = described_class.new end describe 'respond_with' do describe 'by default' do it 'uses json' do @adapter.respond_with('response').should == [200, { 'Content-Type' => 'application/json', 'Content-Length' => '8' }, ['response']] end end it 'adapts the content length' do @adapter.respond_with('123').should == [200, { 'Content-Type' => 'application/json', 'Content-Length' => '3' }, ['123']] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picky-2.7.0 | spec/lib/adapters/rack/base_spec.rb |
picky-2.6.0 | spec/lib/adapters/rack/base_spec.rb |