File: spec_helper.rb

package info (click to toggle)
ruby-file-validators 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 388 kB
  • sloc: ruby: 1,601; makefile: 10
file content (25 lines) | stat: -rw-r--r-- 646 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

ENV['RAILS_ENV'] ||= 'test'

require 'active_support'
require 'active_support/deprecation'
require 'active_support/core_ext'
require 'file_validators'
require 'rspec'
#require 'coveralls'

#Coveralls.wear!

locale_path = Dir.glob(File.dirname(__FILE__) + '/locale/*.yml')
I18n.load_path += locale_path unless I18n.load_path.include?(locale_path)
I18n.enforce_available_locales = false

Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }

RSpec.configure do |config|
  config.include Helpers

  # Suppress stdout in the console
  config.before { allow($stdout).to receive(:write) }
end