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/remote' require 'crystal/spec/remote' RSpec::Core::ExampleGroup.class_eval do def self.with_remote_spec before :all do crystal.after :environment do crystal.conveyors.services do |ss| ss.use Crystal::Processors::RemoteCaller, :content end end end end end