Sha256: ea81aef60892bd12321c2be861b19fc89042b78210c7d1128d4597099e3bf2c3

Contents?: true

Size: 726 Bytes

Versions: 3

Compression:

Stored size: 726 Bytes

Contents

require 'rspec/collection_matchers'
require 'factory_bot'
require 'faker'

require 'basecrm'

module FactoryBot
  module Strategy
    class Create
      def result(evaluation)
        evaluation.create(evaluation.object)
      end
    end
  end
end

Dir[File.join(__dir__, "/support/**/*.rb")].each { |f| require f }
FactoryBot.find_definitions

RSpec.configure do |config|
  config.include FactoryBot::Syntax::Methods

  config.expect_with :rspec do |expectations|
    # It makes the `description` and `failure_message` of custom matchers include text for helper methods
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.order = :random

  config.raise_errors_for_deprecations!
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
basecrm-1.3.8 spec/spec_helper.rb
basecrm-1.3.7 spec/spec_helper.rb
basecrm-1.3.6 spec/spec_helper.rb