Sha256: d1eca8c88c14de59888b3448a7c4a05a6284ef4ef6d61bffa1745bf771ab600c

Contents?: true

Size: 679 Bytes

Versions: 83

Compression:

Stored size: 679 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

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

83 entries across 83 versions & 3 rubygems

Version Path
jets-2.3.0 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.2.5 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.2.4 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.2.3 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.2.2 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.2.1 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.2.0 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.1.7 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.1.6 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.1.5 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.1.4 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.1.3 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.1.2 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets_bb_fork-0.0.4 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.1.1 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.1.0 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.0.6 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.0.5 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.0.4 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-2.0.3 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt