Sha256: 2e8a3c38e1c7fb156edfc2896322461af2a28506c9c879e08818c5cc2632e40d

Contents?: true

Size: 455 Bytes

Versions: 3

Compression:

Stored size: 455 Bytes

Contents


shared_context :integration do
  unless const_defined?(:CONFIG_SERVER_URL)
    CONFIG_SERVER_URL = 'http://the.config.server'.freeze
    DOWNSTREAM_URL = 'http://downstream.url'.freeze
    ERROR_LOGGER = StringIO.new
    ACCESS_LOGGER = StringIO.new
  end

  def sitehub(&block)
    builder_block = proc do
      access_logger ACCESS_LOGGER
      error_logger ERROR_LOGGER
      instance_eval(&block)
    end
    SiteHub.build(&builder_block)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sitehub-0.5.0.alpha12 spec/support/shared_contexts/integration_context.rb
sitehub-0.5.0.alpha11 spec/support/shared_contexts/integration_context.rb
sitehub-0.5.0.alpha10 spec/support/shared_contexts/integration_context.rb