Sha256: c21958b3b372cd5d6e319d70be55533fd71c295bc175d170b32520dab30e24b0

Contents?: true

Size: 674 Bytes

Versions: 1

Compression:

Stored size: 674 Bytes

Contents

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.12 spec/router/helper.rb