Sha256: acfbdd14b4a4a0c482ce1075a6e7ef2006937c0d8bda2dcac87d672e26ee92d5
Contents?: true
Size: 768 Bytes
Versions: 10
Compression:
Stored size: 768 Bytes
Contents
require 'spec/helper' 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 :mock 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
10 entries across 10 versions & 3 rubygems