Sha256: 64a46c2dc470cd25ca7b62f9f7ab58ccd31ae8816934377560e9b35c51a0f543

Contents?: true

Size: 350 Bytes

Versions: 8

Compression:

Stored size: 350 Bytes

Contents

shared_context 'with a running app' do
  let(:app) { <%= app_name.classify %>::Application.instance }
end

shared_context 'with token authorization' do
  before(:each) do
    permitted_token = ENV['PERMITTED_TOKENS'].dup.gsub!(/[\[\]]/, '').split(/\s*,\s*/).first if ENV['PERMITTED_TOKENS']
    header 'Http-Authorization', permitted_token
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gris-0.1.3 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.1.2 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.1.1 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.1.0 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.0.9 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.0.8 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.0.7 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.0.6 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt