Sha256: 044deccd5d537374db1610e691c0ad99fb45782feb628ae7129d6da00435a70d

Contents?: true

Size: 849 Bytes

Versions: 1

Compression:

Stored size: 849 Bytes

Contents

ENV["RAILS_ENV"] = "test"

require "pry"
require "active_model/railtie"
require "action_controller/railtie"
require "action_view/railtie"
require "rspec/rails"

require "high_voltage"
require "fake_app"

Rails.backtrace_cleaner.remove_silencers!

Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each { |file| require file }

RSpec.configure do |config|
  config.infer_spec_type_from_file_location!

  config.after(:each) do
    HighVoltage.set_default_configuration
    Rails.application.reload_routes!
  end

  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  config.include RSpec::Matchers
  config.mock_with :rspec
  config.order = "random"

  if Rails::VERSION::MAJOR >= 5
    require "rails-controller-testing"

    config.include(
      Rails::Controller::Testing::TemplateAssertions,
      type: :controller,
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
high_voltage-3.0.0 spec/spec_helper.rb