Sha256: 81fc98a0e8f183094cbf5bd5538e01f5334bce69bb2f0096557edd601e2ccaba

Contents?: true

Size: 684 Bytes

Versions: 81

Compression:

Stored size: 684 Bytes

Contents

ENV['JETS_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

require "jets/spec_helpers"

<% 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

81 entries across 81 versions & 2 rubygems

Version Path
jets-4.0.7 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-4.0.6 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-4.0.5 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-4.0.4 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-4.0.3 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-4.0.2 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-4.0.1 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-4.0.0 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-3.2.2 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-3.2.1 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-3.2.0 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-3.1.5 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-3.1.4 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-3.1.3 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-3.1.2 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-3.1.1 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-3.1.0 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-3.0.23 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-3.0.22 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt