Sha256: 89c0f7d1625b112b6a8b96c7b215e055ad4abe11b61be142150a929e548775d9
Contents?: true
Size: 560 Bytes
Versions: 3
Compression:
Stored size: 560 Bytes
Contents
require 'spec/helper' describe 'Dispatcher::File' do before :all do ramaze @public_root = Ramaze::Global.public_root = 'spec/ramaze/dispatcher/public' end it 'should serve from Global.public_root' do css = File.read(@public_root/'test_download.css') re_css = get('/test_download.css') re_css.body.should == css re_css.status.should == 200 end it 'should give priority to Global.public_root' do file = (@public_root/'favicon.ico') original = File.read(file) get('/favicon.ico').body.should == original end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.1.4 | spec/ramaze/dispatcher/file.rb |
ramaze-0.2.1 | spec/ramaze/dispatcher/file.rb |
ramaze-0.2.0 | spec/ramaze/dispatcher/file.rb |