Sha256: 85166d8d0506eaac52f2b391d9828016fd1cbce50ff7cb8723e332a6c8328466
Contents?: true
Size: 1.24 KB
Versions: 3
Compression:
Stored size: 1.24 KB
Contents
# frozen_string_literal: true # NOTE: mongoid and no_brainer can't be loaded at the same time. # If you try it, one or both of them will not work. # This is why the ORM specs are split into a separate directory and run in separate threads. ENV['RUBY_ENV'] = 'test' # Used by NoBrainer ENV['MONGOID_ENV'] = 'test' # Used by Mongoid ruby_version = Gem::Version.new(RUBY_VERSION) require 'simplecov' if ruby_version >= Gem::Version.new('2.7') && RUBY_ENGINE == 'ruby' require 'rack/test' require 'rspec/block_is_expected' require 'byebug' if RUBY_ENGINE == 'ruby' # This gem require 'omniauth/identity' spec_root_matcher = %r{#{__dir__}/(.+)\.rb\Z} Dir.glob(Pathname.new(__dir__).join('support/**/', '*.rb')).each { |f| require f.match(spec_root_matcher)[1] } DEFAULT_PASSWORD = 'hang-a-left-at-the-diner' DEFAULT_EMAIL = 'mojo@example.com' RSpec.configure do |config| config.include Rack::Test::Methods # config.include ::Mongoid::Matchers, db: :mongodb # 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
omniauth-identity-3.0.9 | spec/spec_helper.rb |
omniauth-identity-3.0.8 | spec/spec_helper.rb |
omniauth-identity-3.0.7 | spec/spec_helper.rb |