Commit cccc731
committed
JRubyTest: fix JRuby unit tests
They need to use global variables (prepended with $) where appropriate.
Clearing the bindings is also very tricky with the JRuby script engine,
so let's remove that test for the time being. (I explored setting the
"org.jruby.embed.clear.variables" attribute to true and/or
"org.jruby.embed.localvariable.behavior" system property to "transient",
but then the variables are cleared immediately following evaluation of
the script, making them unretrievable from the bindings afterwards.)1 parent 96812fe commit cccc731
File tree
1 file changed
+5
-12
lines changed- src/test/java/org/scijava/plugins/scripting/jruby
1 file changed
+5
-12
lines changedLines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 77 | + | |
| 78 | + | |
85 | 79 | | |
86 | 80 | | |
87 | | - | |
88 | | - | |
| 81 | + | |
89 | 82 | | |
90 | 83 | | |
91 | 84 | | |
| |||
95 | 88 | | |
96 | 89 | | |
97 | 90 | | |
98 | | - | |
| 91 | + | |
99 | 92 | | |
100 | 93 | | |
101 | 94 | | |
102 | 95 | | |
103 | | - | |
| 96 | + | |
104 | 97 | | |
105 | 98 | | |
106 | 99 | | |
| |||
0 commit comments