Sha256: b86a5c42057e771109cdd6c610e5d9dc128221b3e05009e7ee20a7b77b36b576
Contents?: true
Size: 735 Bytes
Versions: 16
Compression:
Stored size: 735 Bytes
Contents
ENV['RACK_ENV'] = 'test' require 'webmock/rspec' require 'rack/test' require 'gris/rspec_extensions/response_helpers' require File.expand_path('../../config/application', __FILE__) # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir['./spec/support/**/*.rb'].each { |f| require f } RSpec.configure do |config| config.include Gris::RspecExtensions::ResponseHelpers config.mock_with :rspec config.expect_with :rspec config.before(:suite) do ActiveRecord::Migration.maintain_test_schema! DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.after(:each) do |_example| DatabaseCleaner.clean end end
Version data entries
16 entries across 16 versions & 1 rubygems