Sha256: 9f3a5d712b10b8ff6a708462106e0aa5163d001dc803a5efa62e2cce1d3dad0d
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
require 'rspec_ext' dir = File.dirname __FILE__ crystal_dir = File.expand_path "#{dir}/../.." lib_dir = "#{crystal_dir}/lib" $LOAD_PATH << lib_dir unless $LOAD_PATH.include? lib_dir require 'crystal/http' require 'crystal/router' require 'crystal/spec/environment' RSpec::Core::ExampleGroup.class_eval do def self.with_router_spec before :all do crystal.after :environment do crystal.register :router, :depends_on => :environment do Crystal::Router.new(:class, [[:default_router, Crystal::DefaultRouter.new]]) end crystal.conveyors.web.use Crystal::Processors::Router, :class_variable, :method_variable end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crystal-0.0.13 | spec/router/spec_helper.rb |