spec/spec_helper.rb in query_dam-0.1.0 vs spec/spec_helper.rb in query_dam-0.1.1
- old
+ new
@@ -1,8 +1,9 @@
require 'query_dam'
require 'active_record'
require 'models/item'
+require 'fakeredis/rspec'
RSpec.configure do |config|
config.order = :random
config.expect_with :rspec do |expectations|
@@ -10,9 +11,13 @@
end
config.mock_with :rspec do |mocks|
mocks.syntax = :expect
mocks.verify_partial_doubles = true
+ end
+
+ config.after(:each) do
+ Item.destroy_all
end
end
ActiveRecord::Base.establish_connection(
adapter: 'sqlite3',