Sha256: afb4ce7a4aba6096506532e8800087a8b237953ba2f6a5c4a77c6436f0bd244d

Contents?: true

Size: 650 Bytes

Versions: 68

Compression:

Stored size: 650 Bytes

Contents

ENV["TEST"] = "1"
ENV["JETS_ENV"] ||= "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

<% if @webpacker -%>
require 'capybara/rspec'
Capybara.app = Jets.application
# Capybara.current_driver = :selenium
# Capybara.app_host = 'http://localhost:8888'
<% end %>

module Helpers
  def payload(name)
    JSON.load(IO.read("spec/fixtures/payloads/#{name}.json"))
  end
end

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

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
jets-1.6.0 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.5.10 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.5.9 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.5.8 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.5.7 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.5.6 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.5.5 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.5.4 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.5.3 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.5.2 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.5.1 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.5.0 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.4.11 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.4.10 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.4.9 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.4.8 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.4.7 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.4.6 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.4.5 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-1.4.4 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt