Sha256: 6ece0c8659902e5b38cab3ddc6283b24d979d7b5542ee4278e87ef0207118cef

Contents?: true

Size: 548 Bytes

Versions: 38

Compression:

Stored size: 548 Bytes

Contents

ENV["JETS_ENV"] ||= "test"
ENV["TEST"] = "1"
abort("The Jets environment is running in production mode!") if Jets::Config.env == "production"

require "pp"
require "byebug"
require "fileutils"

require "jets"
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

38 entries across 38 versions & 1 rubygems

Version Path
jets-0.8.18 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.17 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.15 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.14 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.13 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.12 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.11 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.10 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.9 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.8 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.6 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.5 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.4 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.3 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.2 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.1 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.8.0 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.7.1 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.7.0 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt
jets-0.6.9 lib/jets/commands/templates/skeleton/spec/spec_helper.rb.tt