Sha256: 33e6a84cf5d9e542130add5b66bef32c318e12ec161af51a1b608eecd7ac0496
Contents?: true
Size: 595 Bytes
Versions: 24
Compression:
Stored size: 595 Bytes
Contents
# encoding: utf-8 # require 'spec_helper' describe Internals::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
24 entries across 24 versions & 1 rubygems