Sha256: 37ab589a5d744bab9b3d326c2659e530bcb9637dedc9e15309dc39517a202f50
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 Bytes
Contents
require 'spec_helper' describe Request do let (:subject) { Request.new double } it { should be_a(Rack::Request) } end describe Response do it { should be_a(Rack::Response) } describe '#raw_body' do it 'should be accesible when the response was initialized' do raw_body = double res = Response.new raw_body res.raw_body.should == raw_body end it 'should accesible after body was set' do res = Response.new raw_body = double res.body = raw_body res.raw_body.should == raw_body end it 'should set the iterable as the raw body as well' do res = Response.new raw_body = ['one', 'two'] res.body = raw_body res.raw_body.should == raw_body end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nyny-3.0.0 | spec/primitives_spec.rb |