Sha256: 2e280147872c8407045f200fb277a1efc02aee5c07e26ff1bf48a59e770fb10d

Contents?: true

Size: 1.03 KB

Versions: 10

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

require 'simplecov'
SimpleCov.command_name 'specs'

require 'bundler/setup'
require 'active_support/core_ext/kernel/reporting'
require 'yaml'
require 'boltless'

# Load all support helpers and shared examples
Dir[File.join(__dir__, 'support', '**', '*.rb')].sort.each { |f| require f }

RSpec.configure do |config|
  # Enable flags like --only-failures and --next-failure
  config.example_status_persistence_file_path = '.rspec_status'

  # Disable RSpec exposing methods globally on `Module` and `main`
  config.disable_monkey_patching!

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

  # Enable the focus inclusion filter and run all when no filter is set
  # See: http://bit.ly/2TVkcIh
  config.filter_run(focus: true)
  config.run_all_when_everything_filtered = true

  # Clean the neo4j database before we use it
  config.before(:suite) do
    reset_boltless_config!
    clean_neo4j!
  end

  # Reset the gem configuration before each example
  config.before do
    reset_boltless_config!
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
boltless-1.6.0 spec/spec_helper.rb
boltless-1.5.1 spec/spec_helper.rb
boltless-1.5.0 spec/spec_helper.rb
boltless-1.4.4 spec/spec_helper.rb
boltless-1.4.3 spec/spec_helper.rb
boltless-1.4.2 spec/spec_helper.rb
boltless-1.4.1 spec/spec_helper.rb
boltless-1.4.0 spec/spec_helper.rb
boltless-1.3.0 spec/spec_helper.rb
boltless-1.2.0 spec/spec_helper.rb