Sha256: 90075601aae8e735d6f9c7c7d4bdf2573622bbf00a876507b310268e6819a2a5
Contents?: true
Size: 754 Bytes
Versions: 7
Compression:
Stored size: 754 Bytes
Contents
shared_context 'with a running app' do let(:app) { Rack::Builder.parse_file('config.ru').first } end shared_context 'with token authorization' do let(:permitted_token) { Gris.secrets.permitted_tokens } before(:each) do header 'Http-Authorization', permitted_token end end shared_context 'with a running app and token authorized client' do include_context 'with a running app' include_context 'with token authorization' let(:client) do Hyperclient.new('http://example.org/') do |client| client.headers['Http-Authorization'] = permitted_token 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
7 entries across 7 versions & 1 rubygems