Sha256: e275c980a93f63a369b5143862fd5ce28195de7dadb25813b05be8a91d8cb204

Contents?: true

Size: 721 Bytes

Versions: 4

Compression:

Stored size: 721 Bytes

Contents

require 'bundler'
require 'pry'
Bundler.require

require 'rspec/its'
require 'active_record'
require 'rack/test'
require 'action_controller/metal/strong_parameters'
require 'database_cleaner'

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

RSpec.configure do |config|
  config.mock_with :rspec
  config.order = :random
  config.run_all_when_everything_filtered = true
  config.filter_run focus: true

  config.include ModelHelpers
  config.include MuffleHelpers

  config.before(:suite) do
    DatabaseCleaner.clean_with :truncation
    DatabaseCleaner.strategy = :transaction
  end

  config.before do
    DatabaseCleaner.start
  end

  config.after do
    DatabaseCleaner.clean
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
granite-form-0.6.0 spec/spec_helper.rb
granite-form-0.5.0 spec/spec_helper.rb
granite-form-0.4.0 spec/spec_helper.rb
granite-form-0.3.0 spec/spec_helper.rb