Sha256: 293a4c46edc2b759e881b0ee31b1fad7c2959436cdf1841189e435c72921d65f

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 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/controller'
require 'crystal/http'

require 'crystal/spec'

RSpec::Core::ExampleGroup.class_eval do
  def self.with_abstract_controller_spec
    before :all do
      crystal.after :environment do
        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-0.0.12 spec/controller/helper.rb