JRubyCaller { public File unpack(final String gemName, final String gemVersion) throws IOException { if (this.logger.isInfoEnabled()) { this.logger.info("Downloading " + gemName); } final File folder = this.generateTempFolder(gemName); String[] unpackArgs = { "-S", "gem", "unpack", gemName, "--target", folder.getAbsolutePath() }; unpackArgs = this.addVersionToArgs(gemVersion, unpackArgs); Main.main(unpackArgs); if (this.logger.isInfoEnabled()) { this.logger.info(gemName + "downloaded"); } return folder; } JRubyCaller(final Logger logger); File unpack(final String gemName, final String gemVersion);  }
@Test @Ignore public void launchBourbonDownload() throws IOException { final String gemName = "bourbon"; final JRubyCaller jRubyCaller = new JRubyCaller(this.logger); final File file = jRubyCaller.unpack(gemName, null); Assert.assertTrue(file.exists()); }
@Test @Ignore public void launchCompassDownload() throws IOException { final String gemName = "compass-core"; final JRubyCaller jRubyCaller = new JRubyCaller(this.logger); final File file = jRubyCaller.unpack(gemName, null); Assert.assertTrue(file.exists()); }