lib/gris/generators/templates/scaffold/spec/support/app_helper.rb in gris-0.4.7 vs lib/gris/generators/templates/scaffold/spec/support/app_helper.rb in gris-0.4.8

- old
+ new

@@ -1,22 +1,13 @@ 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