require "#{File.expand_path(File.dirname(__FILE__))}/helper" require 'crystal/profiles/web_require' require 'crystal/spec' Spec::Example::ExampleGroup.class_eval do def self.with_controller_ext_spec before :all do crystal.after :environment do crystal.register(:router, :depends_on => :environment){Crystal::Router.new(:class, [Crystal::DefaultRoute.new])} crystal.conveyors.web do |web| web.use Crystal::Processors::ControllerCaller, :content end end end end end