summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-05-10 14:30:14 +0200
committerRémy Coutable <remy@rymai.me>2019-05-10 14:40:04 +0200
commitf59438c0a9da7bb4d98291d2adedfc5a13a50798 (patch)
treecc08eb4e3d5298c76b20696dfdf7ddfc0ca2ac10 /lib
parentb575b303434577ab7d409a8c7321c0bce96d0994 (diff)
downloadgitlab-ce-f59438c0a9da7bb4d98291d2adedfc5a13a50798.tar.gz
Fix unrelated errors when teardowning quanrantined specsavoid-unrelated-errors-in-quarantined-specs
Since we're skipping the example in a before hook, the @_subscribers instance variable that is normally set in the setup phase of the test by https://github.com/rails/rails-controller-testing/blob/21014e48be124dd8d0af250b79f682519d445015/lib/rails/controller/testing/template_assertions.rb#L21 isn't set but the teardown phase of the example still happens and tries to iterate over the array of subcribers: https://github.com/rails/rails-controller-testing/blob/21014e48be124dd8d0af250b79f682519d445015/lib/rails/controller/testing/template_assertions.rb#L54 Using an around hook allows the @_subscribers instance variable to be set. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions