Sha256: d8b7161a020d14adb23a06d6e5515b3af90f228856a5c5914a71e4de1e1e0a96

Contents?: true

Size: 484 Bytes

Versions: 24

Compression:

Stored size: 484 Bytes

Contents

require 'spec_helper'

describe "Configurator" do  
  before do
    @basic_router = Rad::Router::BasicRouter.new
    @router = Rad::Router.new(:class, [
      [:basic_router, @basic_router]
    ])
    Rad::Router::Configurator.stub(:router).and_return(@router)
  end
  
  it "named routes" do
    rad.router.configure do |config|
      config.stub(:router).and_return(@router)
      
      config.skip(/^\/favicon/)
    end
    
    @basic_router.skip_routes.size.should > 0
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rad_core-0.0.17 spec/router/configurator_spec.rb
rad_core-0.0.16 spec/router/configurator_spec.rb
rad_core-0.0.15 spec/router/configurator_spec.rb
rad_core-0.0.14 spec/router/configurator_spec.rb