Commit a3f1d4c
committed
Fix JavaMemoryAssistant spec missing test helper
Add missing sub_configuration_context helper method to
java_memory_assistant_spec.rb. This test has been broken since it was
originally added in commit f2eee85 (Oct 26, 2016).
The test references sub_configuration_context() on line 59 but never
defined the helper method. Other specs (tomcat_spec.rb,
open_jdk_like_spec.rb, ibm_jre_spec.rb) each define their own local
helper following the same pattern.
This is a pre-existing bug unrelated to the Ruby 3.4 migration - the
test would have failed on any Ruby version (2.5, 2.6, 2.7, 3.0, 3.1, 3.4)
with NoMethodError for undefined method 'sub_configuration_context'.
Fixes #436 (original PR where test was introduced)1 parent c269b5f commit a3f1d4c
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
0 commit comments