Sha256: e74b96ef9d099a50519816c9ed061575dd04617aae9e41aff4eeedac33d2515f

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'support'))

require 'grape'

require 'rubygems'
require 'bundler'
Bundler.require :default, :test

Dir["#{File.dirname(__FILE__)}/support/*.rb"].each do |file|
  require file
end

# The default value for this setting is true in a standard Rails app,
# so it should be set to true here as well to reflect that.
I18n.enforce_available_locales = true

module Chunks
  def read_chunks(body)
    buffer = []
    body.each { |chunk| buffer << chunk }

    buffer
  end
end

RSpec.configure do |config|
  config.include Chunks
  config.include Rack::Test::Methods
  config.include Spec::Support::Helpers
  config.raise_errors_for_deprecations!
  config.filter_run_when_matching :focus

  config.before(:each) { Grape::Util::InheritableSetting.reset_global! }

  # Enable flags like --only-failures and --next-failure
  config.example_status_persistence_file_path = '.rspec_status'
end

require 'coveralls'
Coveralls.wear!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grape-1.3.0 spec/spec_helper.rb