lib/gris/generators/templates/scaffold/spec/support/app_helper.rb in gris-0.2.4 vs lib/gris/generators/templates/scaffold/spec/support/app_helper.rb in gris-0.3.0

- old
+ new

@@ -1,14 +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 - permitted_token = ENV['PERMITTED_TOKENS'].split(',').first if ENV['PERMITTED_TOKENS'] header 'Http-Authorization', permitted_token end - let(:permitted_token) { ENV['PERMITTED_TOKENS'].split(',').first } end shared_context 'with a running app and client' do include_context 'with a running app' include_context 'with token authorization'