Sha256: 484ed5b26942923422eedd3acd1471c0053cb7a6f7a0b18b38f67ccf1cdc8b77

Contents?: true

Size: 609 Bytes

Versions: 20

Compression:

Stored size: 609 Bytes

Contents

require 'startback'
require 'startback/event'
require 'startback/support/fake_logger'
require 'rack/test'
require 'ostruct'

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

  world(:partner) do
    Object.new
  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

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
startback-0.17.4 spec/spec_helper.rb
startback-0.17.3 spec/spec_helper.rb
startback-0.17.2 spec/spec_helper.rb
startback-0.17.1 spec/spec_helper.rb
startback-0.17.0 spec/spec_helper.rb
startback-0.16.0 spec/spec_helper.rb
startback-0.15.5 spec/spec_helper.rb
startback-0.15.4 spec/spec_helper.rb
startback-0.15.3 spec/spec_helper.rb
startback-0.15.2 spec/spec_helper.rb
startback-0.15.1 spec/spec_helper.rb
startback-0.15.0 spec/spec_helper.rb
startback-0.14.4 spec/spec_helper.rb
startback-0.14.3 spec/spec_helper.rb
startback-0.14.2 spec/spec_helper.rb
startback-0.14.1 spec/spec_helper.rb
startback-0.14.0 spec/spec_helper.rb
startback-jobs-0.14.0 spec/spec_helper.rb
startback-websocket-0.14.0 spec/spec_helper.rb
startback-0.13.0 spec/spec_helper.rb