spec/spec_helper.rb in grape-entity-0.7.1 vs spec/spec_helper.rb in grape-entity-0.8.0

- old
+ new

@@ -1,9 +1,15 @@ # 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 + SimpleCov.start do add_filter 'spec/' end Coveralls.wear!