$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'startback' require 'startback/event' require 'startback/support/fake_logger' require 'rack/test' module SpecHelpers end RSpec.configure do |c| c.include SpecHelpers end class SubContext < Startback::Context attr_accessor :foo h_factory do |c,h| c.foo = h["foo"] end h_dump do |h| h.merge!("foo" => foo) end end class SubContext attr_accessor :bar h_factory do |c,h| c.bar = h["bar"] end h_dump do |h| h.merge!("bar" => bar) end end class User class Changed < Startback::Event end end