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

Version Path
gris-0.2.0 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.1.7 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.1.6 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.1.5 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.1.4 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.1.3 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.1.2 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.1.1 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.1.0 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.0.9 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.0.8 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.0.7 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.0.6 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.0.5 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.0.4 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.0.3 lib/gris/generators/templates/scaffold/spec/spec_helper.rb