Sha256: 82953828d658f6f89b4cac2528421f9ac455219d0ed5df6d1d621a2361a007f6
Contents?: true
Size: 422 Bytes
Versions: 19
Compression:
Stored size: 422 Bytes
Contents
require 'spec/helper' class SpecSendFile include Innate::Node map '/' def this send_file(__FILE__) end end describe Innate::Helper::SendFile do should 'send __FILE__' do got = Innate::Mock.get('/this') got.body.should == File.read(__FILE__) got.status.should == 200 got['Content-Length'].should == File.size(__FILE__).to_s got['Content-Type'].should == 'text/x-script.ruby' end end
Version data entries
19 entries across 19 versions & 3 rubygems