Sha256: a72e4dd0602332896c98820a967a4a5ca83dfbb6a7432df891ef95f40b7bffea

Contents?: true

Size: 796 Bytes

Versions: 4

Compression:

Stored size: 796 Bytes

Contents

require "coveralls"
Coveralls.wear!

require "pry"

ENV["RAILS_ENV"] ||= "test"

require File.expand_path(
  File.dirname(__FILE__) + "/../fixture_rails_root/config/environment",
)
require Rails.root.join("db/schema").to_s

require "rspec/rails"

$LOAD_PATH << File.expand_path(File.dirname(__FILE__) + "/../lib/")

require "borutus"
require "kaminari"

Dir[
  File.expand_path(
    File.join(File.dirname(__FILE__), "support", "**", "*.rb"),
  )
].each do |f|
  require f
end

require "factory_bot"

borutus_definitions = File.expand_path(
  File.join(File.dirname(__FILE__), "factories"),
)
FactoryBot.definition_file_paths << borutus_definitions

RSpec.configure do |config|
  config.use_transactional_fixtures = true
  config.infer_spec_type_from_file_location!
end

FactoryBotHelpers.reload

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
borutus-1.0.0 spec/spec_helper.rb
borutus-0.2.4 spec/spec_helper.rb
borutus-0.2.3 spec/spec_helper.rb
borutus-0.2.2 spec/spec_helper.rb