#!/usr/bin/env ruby # encoding: UTF-8 require 'benchmark' $LOAD_PATH.unshift File.expand_path(File.join('..', '..', 'lib'), __FILE__ ) require "plezi" require "bundler/setup" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. # (If you use this, don't forget to add pry to your Gemfile!) # require "pry" # Pry.start class DispatchTest @auto_dispatch = true def before {event: :failed, data: :forbidden}.to_json end def _hidden {event: :failed, data: :forbidden}.to_json end def test data = {} data[:data] ||= "test" {event: 'alert', data: data[:data]}.to_json end def index %q{
} end end host assets: File.expand_path(File.join('..','..', 'resources'), __FILE__) route '/', DispatchTest