Sha256: 1ce8d2679864e68cc984da7211c03ed949a87b2bc3d25e7eeb1ece6e94e88783

Contents?: true

Size: 203 Bytes

Versions: 15

Compression:

Stored size: 203 Bytes

Contents

shared_context :rack_test do
  include Rack::Test::Methods

  def env
    @env ||= {}
  end

  before :each do |example|
    @env = { 'async.callback' => callback } if example.metadata[:async]
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sitehub-0.5.0.alpha12 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.4.10 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.5.0.alpha11 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.5.0.alpha10 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.5.0.alpha8 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.5.0.alpha7 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.5.0.alpha6 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.5.0.alpha5 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.5.0.alpha4 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.5.0.alpha3 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.5.0.alpha2 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.4.9 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.4.8 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.4.7 spec/support/shared_contexts/rack_test_context.rb
sitehub-0.4.6 spec/support/shared_contexts/rack_test_context.rb