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 x/diff/.gitignore?id=7e7e91b15986920e889b13a533cee0ccb5005025'>diff
path: root/.gitignore
AgeCommit message (Expand)Author
2023-10-22teams: Adjust shebang to use 'guix repl'....This ensures the correct Guix dependencies are always available for the script. * etc/teams.scm.in: Rename to... * etc/teams.scm: ... this. Adjust shebang. * .gitignore: No longer ignore it. * configure.ac: Do not process it with AC_CONFIG_FILES. Reported-by: Clément Lassieur <clement@lassieur.org> Fixes: https://issues.guix.gnu.org/66605 Change-Id: I7a01750c6c5f0696b6c36b1e6caa9389d9e6822c Maxim Cournoyer
2023-04-24Add mumi config....* .mumi/config: New file. * .gitignore: Add .mumi/current-issue. Arun Isaac
2022-07-03etc: Add teams.scm....* etc/teams.scm.in: New file. * configure.ac: Generate executable. * .gitignore: Ignore generated file. Ricardo Wurmus
2022-06-05gitignore: Add .DS_Store....Ignore MacOS specific file: https://en.wikipedia.org/wiki/.DS_Store Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Pavel Shlyak
2021-10-16.gitignore: Ignore more autotools directories....* .gitignore: Add pattern to ignore ".am[0-9]*/". Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Sarah Morgensen
2021-10-16.gitignore: Ignore more temporary test directories....* .gitignore: Add pattern to ignore "/t-*/". Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Sarah Morgensen
2021-09-20etc: Add systemd files for running ‘guix gc’ periodically...* etc/guix-gc.service.in: New file. * etc/guix-gc.timer: Likewise. * .gitignore: Ignore generated ‘guix-gc.service’. * nix/local.mk (nodist_systemdservice_DATA): Add ‘guix-gc.service’ and ‘guix-gc.timer’. (EXTRA_DIST): Add ‘guix-gc.service.in’ and ‘guix-gc.timer’. * doc/guix.texi (Binary Installation): Mention the new systemd files. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Thiago Jung Bauermann
2021-05-10.gitignore: Ignore .mo files....* .gitignore: Ignore files matching the *.mo pattern. Maxim Cournoyer
2021-05-05.gitignore: Ignore .tarball-ignore....This file can be useful to fix a version string when experimenting with 'make release'. * .gitignore: Add a pattern to ignore .tarball-version. Maxim Cournoyer
2021-04-23.gitignore: Ignore release artifacts....Not ignoring these in the tree leads to the next generated version (.version) being suffixed with '-dirty', which confuses things. * .gitignore [/guix-*]: New pattern. [/doc/stamp-[0-9]]: Adjust to ... [/doc/stamp-*]: ... this. [/release-*]: New pattern. Maxim Cournoyer
2021-04-23.gitignore: Ignore generated .pot files....These files are automatically-extracted templates rather than source, hence shouldn't be checked in. * .gitignore: Add a glob pattern to ignore .pot files. Maxim Cournoyer