Sha256: e2350efdcc4cb400a1f460d10e1758b88ca3764de84e4086c55a3dc70578d419

Contents?: true

Size: 677 Bytes

Versions: 9

Compression:

Stored size: 677 Bytes

Contents

# frozen_string_literal: true

ENV['JETS_TEST'] = '1'
ENV['JETS_ENV'] ||= 'test'
ENV['JETS_STAGE'] ||= 'test'
# Ensures aws api never called. Fixture home folder does not contain ~/.aws/credentails
ENV['HOME'] = 'spec/fixtures/home'

require 'byebug'
require 'fileutils'
require 'jets'

abort('The Jets environment is running in production mode!') if Jets.env == 'production'
Jets.boot

require 'jets/spec_helpers'

# Rspec helper module
module Helpers
  def payload(name)
    JSON.parse(File.read("spec/fixtures/payloads/#{name}.json"))
  end
end

RSpec.configure do |c|
  c.include Helpers
end

Jets.application.configure do
  config.helpers.host = 'https://example.com'
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
my_api_client-1.2.0 my_api/spec/spec_helper.rb
my_api_client-1.1.0 my_api/spec/spec_helper.rb
my_api_client-1.0.0 my_api/spec/spec_helper.rb
my_api_client-0.27.0 my_api/spec/spec_helper.rb
my_api_client-0.26.0 my_api/spec/spec_helper.rb
my_api_client-0.25.0 my_api/spec/spec_helper.rb
my_api_client-0.24.0 my_api/spec/spec_helper.rb
my_api_client-0.23.0 my_api/spec/spec_helper.rb
my_api_client-0.22.0 my_api/spec/spec_helper.rb