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/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