String[] args = new String[]{"--command", "gem"};
RubyInstanceConfig parser = new RubyInstanceConfig();
parser.processArguments(args);
assertEquals(1, parser.requiredLibraries().size());
assertEquals("jruby/commands", parser.requiredLibraries().get(0));
assertEquals("JRuby::Commands.gem\n", new String(parser.inlineScript()));
}
public void testCommandAllowedOnlyOnceAndRemainderAreScriptArgs() {
String[] args = new String[]{"--command", "gem", "--command", "irb"};
RubyInstanceConfig parser = new RubyInstanceConfig();