Sha256: 730e4e1339c80de9421a97894395245c9f46228c29185ad825d88c988988328c
Contents?: true
Size: 317 Bytes
Versions: 5
Compression:
Stored size: 317 Bytes
Contents
require 'spec_helper' describe 'NYNY primitives' do describe NYNY::Response do it 'allows to rewrite the response' do resp = NYNY::Response.new resp.write 'foo' resp.rewrite 'banana' resp.headers['Content-Length'].should == "6" resp.body.first.should == 'banana' end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
nyny-3.3.0 | spec/primitives_spec.rb |
nyny-3.2.2 | spec/primitives_spec.rb |
nyny-3.2.1 | spec/primitives_spec.rb |
nyny-3.2.0 | spec/primitives_spec.rb |
nyny-3.1.0 | spec/primitives_spec.rb |