Sha256: 734255b33b51114c457a43970e4bdee600d1b15154c25a07e9cdbbc2aad8a250

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

require 'crystal/spec/environment'

RSpec::Core::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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crystal-0.0.13 lib/crystal/spec/controller.rb
crystal-0.0.12 lib/crystal/spec/controller.rb