require 'crystal/spec/environment' Spec::Example::ExampleGroup.class_eval do def ccall klass, method, params = {} crystal.conveyors.web.call( :class => klass, :method_name => method.to_s, :params => Crystal::Params.new(params) ) end end Crystal::AbstractController.class_eval do def render_ok render :inline => 'ok' end end