From 407c6a5db6c1f1cfb40bd6113f07f067d07885a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Origin: https://github.com/mustache/mustache/pull/258 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954503 Date: Mon, 27 Apr 2020 11:16:17 +0200 Subject: [PATCH] Fix test race condition. The test suite randomly fails with errors such as: ~~~ 1) Failure: AutoloadingTest#test_autoload_lowercase [/builddir/build/BUILD/mustache-1.1.1/usr/share/gems/gems/mustache-1.1.1/test/autoloading_test.rb:17]: Expected: Comments Actual: nil ~~~ This happens when `test_namespaced*` test cases are executed earlier than the remaining test cases, because they are defining `view_namespace` but not cleaning up afterwards. --- test/autoloading_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/autoloading_test.rb b/test/autoloading_test.rb index 0a7ad762..77eb3557 100644 --- a/test/autoloading_test.rb +++ b/test/autoloading_test.rb @@ -7,6 +7,10 @@ def setup Mustache.view_path = File.dirname(__FILE__) + '/fixtures' end + def teardown + Mustache.remove_instance_variable(:@view_namespace) if Mustache.instance_variable_defined?(:@view_namespace) + end + def test_autoload klass = Mustache.view_class(:Comments) assert_equal Comments, klass ilmap?id=a01afbd30095f2285d8829dab006afdaba1d4103'>diff
path: root/.mailmap
AgeCommit message (Expand)Author
2024-01-07Update mailmap....* .mailmap: Add entry for Tomas Volf. Change-Id: I0a8b43b3b7f71c3020f96118adcbad8937a290fb Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Tomas Volf
2023-08-16Update email addresses for Juliana Sims....* .mailmap: Add an entry for Juliana. * gnu/packages/admin.scm, gnu/packages/audio.scm, gnu/packages/build-tools.scm, gnu/packages/scheme.scm: Update Juliana's email. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Juliana Sims
2022-01-11Update mailmap....* .mailmap: Add entry for Zheng Junjie. Leo Famulari
2021-11-06Update mailmap and copyright assignments for Liliana Marie Prikler....Use full names everywhere. * .mailmap: Use full name for Liliana Marie Prikler. * gnu/packages/zig.scm: Likewise. Liliana Marie Prikler
2021-09-06Update mailmap....* .mailmap: Add entry for Liliana Marie Prikler. Liliana Marie Prikler
2021-09-04Update mailmap....* .mailmap: Alias all my contributions to the same identity. Marius Bakke
2021-07-27Update mailmap....* .mailmap: Add entry for Christine Lemmer-Webber. Leo Famulari
2021-07-08mailmap: Update entries for Matthew James Kraai....* .mailmap: Change name for Matthew James Kraai. * gnu/packages/lisp-xyz.scm, gnu/packages/python-xyz.scm, gnu/packages/rust.scm: Likewise. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Matthew James Kraai
2021-06-23gnu: Add Sollya....* gnu/packages/algebra.scm (sollya): New variable. * .mailmap: Adjust "proper email" for `git commit`. Eric Bavier
2021-04-21Update email address for Kei....* .mailmap: Remove obsolete email for Kei. Kei Kebreau