require "rubygems" dir = File.dirname(__FILE__) $:.unshift(File.expand_path("#{dir}/../vendor/js-test-core/lib")) require "js_test_core" JsTestCore::Resources::WebRoot.dispatch_specs require "#{dir}/js_spec/resources" module JsSpec DEFAULT_HOST = JsTestCore::DEFAULT_HOST DEFAULT_PORT = JsTestCore::DEFAULT_PORT Server = JsTestCore::Server RailsServer = JsTestCore::RailsServer Client = JsTestCore::Client end JsTestCore.core_path = File.expand_path("#{dir}/../core") class JsTestCore::Resources::Specs::SpecFile include JsSpec::Resources::Spec end class JsTestCore::Resources::Specs::SpecDir include JsSpec::Resources::Spec end