package jenkins.ruby;

import com.gargoylesoftware.htmlunit.html.HtmlPage;
import org.jvnet.hudson.test.HudsonTestCase;

/**
 * @author Kohsuke Kawaguchi
 */
public class RubyViewTest extends HudsonTestCase {
    public void test1() throws Exception {
        HtmlPage p = createWebClient().goTo("self");
        String text = p.asText();
        assertTrue(text.contains("I am Java::JenkinsRuby::RubyViewTest"));
        assertTrue(text.contains("1+1=2"));
        assertTrue(text.contains("Hello from ERB [Jenkins]"));
    }
}

@@ -245,16 +245,133 @@
 ption %7B%0A
+        // make sure plugin started%0A        assertTrue(jenkins.pluginManager.getPlugin(%22ruby-runtime%22).isActive());%0A%0A
         

make sure the plugin starts succcessfully