Sha256: 1a596aad08afabd5f82be07570133a440a118060069256cb4fe2b87373011159

Contents?: true

Size: 320 Bytes

Versions: 8

Compression:

Stored size: 320 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'].split(',').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.2.3 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.2.2 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.2.1 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.2.0 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.1.7 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.1.6 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.1.5 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt
gris-0.1.4 lib/gris/generators/templates/scaffold/spec/support/app_helper.rb.tt