File: spec_helper.rb

package info (click to toggle)
ruby-grape-entity 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 456 kB
  • sloc: ruby: 3,335; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 726 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
# frozen_string_literal: true

require 'simplecov'
require 'coveralls'

# This works around the hash extensions not being automatically included in ActiveSupport < 4
require 'active_support/version'
require 'active_support/core_ext/hash' if ActiveSupport::VERSION &&
                                          ActiveSupport::VERSION::MAJOR &&
                                          ActiveSupport::VERSION::MAJOR < 4

# Skip code covarge on Ruby >= 3.1
# See https://github.com/simplecov-ruby/simplecov/issues/1003
unless RUBY_VERSION >= '3.1'
  SimpleCov.start do
    add_filter 'spec/'
  end

  Coveralls.wear! unless RUBY_PLATFORM.eql? 'java'
end

require 'grape_entity'

RSpec.configure(&:raise_errors_for_deprecations!)