Commits

Stefan Saasen  committed ab37047

Fix broken test

  • Participants
  • Parent commits 0ee0077

Comments (0)

Files changed (1)

File src/test/java/com/atlassian/plugins/polyglot/jrubyexample/bridge/ScriptingContainerProviderTest.java

 import static com.atlassian.plugins.polyglot.jrubyexample.bridge.ScriptingContainerProviderImpl.ResourcePathProvider;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
 
 import org.junit.Test;
 
 public class ScriptingContainerProviderTest {
 
-    private static final String EXAMPLE_PATH = "/Users/ssaasen/dev/atlassian/plugins/atlassian-jruby-example-plugin/src/main/ruby,/Users/ssaasen/dev/atlassian/plugins/atlassian-jruby-example-plugin/src/main/rubygems/gems,/Users/ssaasen/dev/atlassian/plugins/atlassian-jruby-example-plugin/src/main/resources";
+    private static final String EXAMPLE_PATH = "src/main/ruby,src/main/rubygems/gems,src/main/resources";
     
     @Test
     public void testGetScriptingContainer() throws Exception {
     @Test
     public void testLocalResourceProviderGemsPath() {
         ResourcePathProvider resourcePathProvider = new ResourcePathProvider(EXAMPLE_PATH);
-        assertEquals("/Users/ssaasen/dev/atlassian/plugins/atlassian-jruby-example-plugin/src/main/rubygems/gems", resourcePathProvider.getRubyGemsSourcesPath());
+        assertTrue(resourcePathProvider.getRubyGemsSourcesPath().endsWith("src/main/rubygems/gems"));
     }
 
     @Test
     public void testLocalResourceProviderSourcePath() {
         ResourcePathProvider resourcePathProvider = new ResourcePathProvider(EXAMPLE_PATH);
-        assertEquals("/Users/ssaasen/dev/atlassian/plugins/atlassian-jruby-example-plugin/src/main/ruby", resourcePathProvider.getRubySourcesPath());
+        assertTrue(resourcePathProvider.getRubySourcesPath().endsWith("src/main/ruby"));
     }
 
 }