Sha256: 8c78f270d03088f7dfffbace15a56abc7247274e079d44b6c84f9e8941d8819c

Contents?: true

Size: 449 Bytes

Versions: 15

Compression:

Stored size: 449 Bytes

Contents

shared_context 'with a running app' do
  let(:app) { Rack::Builder.parse_file('config.ru').first }
end

shared_context 'with a running app and client' do
  include_context 'with a running app'

  let(:client) do
    Hyperclient.new('http://example.org/') do |client|
      client.connection(default: false) do |conn|
        conn.request :hal_json
        conn.response :json
        conn.use Faraday::Adapter::Rack, app
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gris-0.6.8 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.6.7 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.6.6 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.6.5 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.6.2 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.6.1 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.6.0 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.5.9 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.5.8 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.5.7 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.5.6 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.5.5 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.5.4 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.5.3 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.5.2 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb