Add test_after_commit gem

Fixes the indexing of papers when running the tests since they are wrapped in a transaction. 

see http://www.justinweiss.com/articles/a-couple-callback-gotchas-and-a-rails-5-fix/
This commit is contained in:
Lars Henrik Mai 2016-02-20 07:46:37 +01:00
parent d9f95f9e97
commit 9423847cb1
2 changed files with 4 additions and 0 deletions

View file

@ -59,6 +59,7 @@ group :test do
gem 'shoulda-matchers', '~> 3.1'
gem 'faker'
gem 'simplecov', require: false
gem 'test_after_commit' # TODO remove when moving to rails 5
end
# Use ActiveModel has_secure_password