Sha256: f6683d988116568806c0c753da60a02ff15502bac56d99281b258e8c77785f1d

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true

# These Plugins Must Be Loaded Before Anything Else
require 'rspeckled/plugins/configuration/simple_cov'
require 'rspeckled/plugins/configuration/dox'

require 'rspeckled/reporting'
require 'rspeckled/support'
require 'rspeckled/helpers'
require 'rspeckled/patches'
require 'rspeckled/plugins'

::RSpec.configure do |config|
  config.include ::Rspeckled::Helpers::Factories
  config.include ::Rspeckled::Helpers::Filepaths
  config.include ::Rspeckled::Helpers::NullObjects
  config.include ::Rspeckled::Helpers::Patterns
  config.include ::Rspeckled::Helpers::Responses
end

Dir[File.join(Dir.pwd, 'spec', 'support', '**', '*.rb')].sort.each { |f| require f }

Dir[File.join(Dir.pwd, 'spec', 'shared',  '**', '*_spec.rb')].sort.each do |f|
  puts(<<~HEREDOC).tr("\n", ' ')
    WARNING: You have a shared example file (#{f}) that ends in '_spec'. RSpec
    will load this twice with a misleading error message if you are explicitly
    requiring your shared examples (as you should).  See:
    https://github.com/rspec/rspec-core/issues/828"
  HEREDOC
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspeckled-2.1.1 lib/rspeckled/spec_helpers/rspeckled.rb
rspeckled-2.1.0 lib/rspeckled/spec_helpers/rspeckled.rb