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.2.6 spec/router/configurator_spec.rb
rad_core-0.2.5 spec/router/configurator_spec.rb
rad_core-0.2.4 spec/router/configurator_spec.rb
rad_core-0.2.3 spec/router/configurator_spec.rb
rad_core-0.2.2 spec/router/configurator_spec.rb
rad_core-0.2.1 spec/router/configurator_spec.rb
rad_core-0.2.0 spec/router/configurator_spec.rb
rad_core-0.0.30 spec/router/configurator_spec.rb
rad_core-0.0.29 spec/router/configurator_spec.rb
rad_core-0.0.28 spec/router/configurator_spec.rb
rad_core-0.0.27 spec/router/configurator_spec.rb
rad_core-0.0.26 spec/router/configurator_spec.rb
rad_core-0.0.25 spec/router/configurator_spec.rb
rad_core-0.0.24 spec/router/configurator_spec.rb
rad_core-0.0.23 spec/router/configurator_spec.rb
rad_core-0.0.22 spec/router/configurator_spec.rb
rad_core-0.0.21 spec/router/configurator_spec.rb
rad_core-0.0.20 spec/router/configurator_spec.rb
rad_core-0.0.19 spec/router/configurator_spec.rb
rad_core-0.0.18 spec/router/configurator_spec.rb