Sha256: 827882519b084a810c303839ca5676817f67351a7291340b66ae1991d8f6660a

Contents?: true

Size: 648 Bytes

Versions: 3

Compression:

Stored size: 648 Bytes

Contents

ENV['RACK_ENV'] ||= 'test'
ENV['GRAPE_ENV'] ||= ENV['RACK_ENV']

if ENV['COVERAGE']
  require 'simplecov'
  SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
  SimpleCov.start
end

app_path = File.expand_path('../../app', __FILE__)
$LOAD_PATH.unshift(app_path) unless $LOAD_PATH.include?(app_path)
require 'application'

require 'rack/test'

Dir[File.join(APP_ROOT, 'spec', 'support', '**', '*.rb')].each { |f| require f }

RSpec.configure do |config|
  config.mock_with :rspec
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.order = 'random'
  config.include Rack::Test::Methods
end

def app
  API
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grape_press-0.0.3 lib/grape_press/templates/spec/spec_helper.rb.erb
grape_press-0.0.2 lib/grape_press/templates/spec/spec_helper.rb.erb
grape_press-0.0.1 lib/grape_press/templates/spec/spec_helper.rb.erb