mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
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:
parent
d9f95f9e97
commit
9423847cb1
2 changed files with 4 additions and 0 deletions
1
Gemfile
1
Gemfile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue