Sha256: df8ec67bfe5c9b6f8d0448d261e22837da3b97f1143f4d2975353d5996d91759
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe TomcatRails::WebApp do before do tomcat = TomcatRails::Tomcat::Tomcat.new tomcat_web_app = tomcat.addWebapp('/', File.dirname(__FILE__) + '/../../') config = { :libs_dir => 'lib', :classes_dir => 'classes', :web_app_dir => File.join(File.dirname(__FILE__), '..', 'web_app_mock') } @web_app = TomcatRails::WebApp.new(tomcat_web_app, config) end it "should load custom jars" do class_loader = org.jruby.util.JRubyClassLoader.new(JRuby.runtime.jruby_class_loader) @web_app.add_application_libs(class_loader) resource = class_loader.find_class('org.ho.yaml.Yaml') resource.should_not == nil end it "should load custom classes" do class_loader = org.jruby.util.JRubyClassLoader.new(JRuby.runtime.jruby_class_loader) @web_app.add_application_classes(class_loader) resource = class_loader.find_class('HelloTomcat') resource.should_not == nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calavera-tomcat-rails-0.1.2 | spec/tomcat-rails/web_app_spec.rb |