Sha256: 0dff2e683f87c4768c0f5d80986b9a119a963ac2cd00867aa262356cbb0723ad

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
crystal_ext-0.0.4 spec/controller_helper.rb