Sha256: 10a9627fd7782f8116ddd496355cd1ade87aa0d2ad5f0c39191e0c414b7679ac

Contents?: true

Size: 731 Bytes

Versions: 30

Compression:

Stored size: 731 Bytes

Contents

ENV['RACK_ENV'] = 'test'

require File.expand_path('../../config/application', __FILE__)
require 'gris/rspec_extensions/response_helpers'
require 'gris/rspec_extensions/active_record_shared_connection'
ActiveRecord::Migration.check_pending!

# 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 = :truncation
  end

  config.before do
    DatabaseCleaner.clean
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
gris-0.6.8 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.6.7 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.6.6 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.6.5 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.6.2 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.6.1 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.6.0 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.5.9 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.5.8 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.5.7 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.5.6 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.5.5 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.5.4 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.5.3 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.5.2 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.5.1 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.5.0 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.4.9 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.4.8 lib/gris/generators/templates/scaffold/spec/spec_helper.rb
gris-0.4.7 lib/gris/generators/templates/scaffold/spec/spec_helper.rb