spec/spec_helper.rb in postgres_upsert-5.0.0 vs spec/spec_helper.rb in postgres_upsert-5.1.0
- old
+ new
@@ -1,16 +1,19 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
require File.expand_path("../../config/environment", __FILE__)
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'fixtures/test_model'
+require 'fixtures/test_model_copy'
require 'fixtures/three_column'
require 'fixtures/reserved_word_model'
require 'fixtures/composite_key_model'
-require 'rspec'
require 'rspec/rails'
require 'rspec/autorun'
+require 'database_cleaner/active_record'
RSpec.configure do |config|
- #config.use_transactional_fixtures = false
+ config.before(:example) do
+ DatabaseCleaner.clean_with(:truncation)
+ end
config.expose_current_running_example_as :example
config.infer_spec_type_from_file_location!
end