mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +01: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 'shoulda-matchers', '~> 3.1'
|
||||||
gem 'faker'
|
gem 'faker'
|
||||||
gem 'simplecov', require: false
|
gem 'simplecov', require: false
|
||||||
|
gem 'test_after_commit' # TODO remove when moving to rails 5
|
||||||
end
|
end
|
||||||
|
|
||||||
# Use ActiveModel has_secure_password
|
# Use ActiveModel has_secure_password
|
||||||
|
|
|
@ -248,6 +248,8 @@ GEM
|
||||||
sqlite3 (1.3.10)
|
sqlite3 (1.3.10)
|
||||||
temple (0.7.5)
|
temple (0.7.5)
|
||||||
terminal-notifier-guard (1.6.4)
|
terminal-notifier-guard (1.6.4)
|
||||||
|
test_after_commit (0.4.2)
|
||||||
|
activerecord (>= 3.2)
|
||||||
thor (0.19.1)
|
thor (0.19.1)
|
||||||
thread_safe (0.3.5)
|
thread_safe (0.3.5)
|
||||||
tilt (1.4.1)
|
tilt (1.4.1)
|
||||||
|
@ -299,6 +301,7 @@ DEPENDENCIES
|
||||||
spring-commands-rspec
|
spring-commands-rspec
|
||||||
sqlite3
|
sqlite3
|
||||||
terminal-notifier-guard
|
terminal-notifier-guard
|
||||||
|
test_after_commit
|
||||||
turbolinks
|
turbolinks
|
||||||
uglifier
|
uglifier
|
||||||
validate_url
|
validate_url
|
||||||
|
|
Loading…
Reference in a new issue