Sha256: 38c67e31da16ee9e73ba8c627ee8e664af578f4f9658c7c31d7e9c53257ad175

Contents?: true

Size: 466 Bytes

Versions: 4

Compression:

Stored size: 466 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 token authorized 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

4 entries across 4 versions & 1 rubygems

Version Path
gris-0.5.1 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.5.0 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.4.9 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb
gris-0.4.8 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb