require 'router/spec_helper' describe "Configurator" do before :each do @router = Rad::Router.new :class Rad::Routes::Configurator.stub(:router).and_return(@router) end it "named routes" do rad.routes do |config| config.stub(:router).and_return(@router) config.skip(/^\/favicon/) end @router.skip.size.should > 0 end end