Sha256: a9377f672861fef8c7d44f66068cabefb017f5ccd1039cc2ad3034c0309adb26
Contents?: true
Size: 959 Bytes
Versions: 5
Compression:
Stored size: 959 Bytes
Contents
# Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the MIT license. require File.expand_path('../../../spec/helper', __FILE__) class SpecAppMain < Ramaze::Controller map '/', :core def index 'core main' end end class SpecAppTwo < Ramaze::Controller map '/two', :core def index 'core two' end end class SpecAppOtherMain < Ramaze::Controller map '/', :other def index 'other main' end end class SpecAppOtherTwo < Ramaze::Controller map '/two', :other def index 'other two' end end Ramaze::App[:core].location = '/' Ramaze::App[:other].location = '/other' describe Ramaze::App do behaves_like :rack_test it 'handles call with rack env' do get('/').body.should == 'core main' get('/two').body.should == 'core two' get('/other').body.should == 'other main' get('/other/two').body.should == 'other two' end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ramaze-2023.01.06 | spec/ramaze/app.rb |
ramaze-2012.12.08 | spec/ramaze/app.rb |
ramaze-2012.12.08b | spec/ramaze/app.rb |
ramaze-2012.04.14 | spec/ramaze/app.rb |
ramaze-2012.03.07 | spec/ramaze/app.rb |