Skip to content

Commit

Permalink
We need to use forward slashes in test if we are embedding that path …
Browse files Browse the repository at this point in the history
…into a ruby script on Windows
enebo committed Mar 9, 2016

Verified

This commit was signed with the committer’s verified signature.
makenowjust Hiroya Fujinami
1 parent ab20ef5 commit bc7de11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/test/java/org/jruby/embed/bsf/JRubyEngineTest.java
Original file line number Diff line number Diff line change
@@ -41,6 +41,7 @@
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
import java.util.logging.StreamHandler;
import jnr.posix.util.Platform;
import org.apache.bsf.BSFDeclaredBean;
import org.apache.bsf.BSFException;
import org.apache.bsf.BSFManager;
@@ -78,6 +79,7 @@ public static void tearDownClass() throws Exception {
@Before
public void setUp() throws FileNotFoundException {
basedir = System.getProperty("user.dir");
if (Platform.IS_WINDOWS) basedir = basedir.replace('\\', '/');
System.setProperty("org.jruby.embed.localcontext.scope", "threadsafe");
System.setProperty("org.jruby.embed.class.path", basedir + "/test");

0 comments on commit bc7de11

Please sign in to comment.