Sha256: f7de053f6db87c56c4ef3ce20160fe3b9a3a2028b094695de18f0cc43111d986

Contents?: true

Size: 585 Bytes

Versions: 1

Compression:

Stored size: 585 Bytes

Contents

require 'spec/helper'

describe 'Dispatcher::File' do
  before :all do
    ramaze
  end

  it 'should serve from proto/public' do
  end

  it 'should serve from Global.public_root' do
    dir = Ramaze::Global.public_root = 'spec/ramaze/public'
    css = File.read(dir/'test_download.css')
    re_css = get('/test_download.css')
    re_css.body.should == css
    re_css.status.should == 200
  end

  it 'should serve from Global.public_proto' do
    file = (Ramaze::Global.public_proto/'error.zmr')
    original = File.read(file)
    get('/error.zmr').body.should == original
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ramaze-0.1.2 spec/ramaze/dispatcher/file.rb