Sha256: 27301d02807c3e85f88cf5085c5a302cf161a9c878ac6efdaacf516666b648ed

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

require "spec_helper"

require 'crystal/profiles/web_require'

require 'crystal/spec'

RSpec::Core::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.7 spec/controller_spec_helper.rb