require "rubygems" require "spec" require "spec/autorun" require "rack/test" require "rr" ARGV.push("-b") dir = File.dirname(__FILE__) LIBRARY_ROOT_DIR = File.expand_path("#{dir}/../..") $LOAD_PATH.unshift File.expand_path("#{LIBRARY_ROOT_DIR}/lib") require "js_test_core" require "nokogiri" require "guid" require "thin" require "#{LIBRARY_ROOT_DIR}/spec/spec_helpers/be_http" require "#{LIBRARY_ROOT_DIR}/spec/spec_helpers/example_group" require "#{LIBRARY_ROOT_DIR}/spec/spec_helpers/fake_selenium_driver" require "#{LIBRARY_ROOT_DIR}/spec/spec_helpers/show_test_exceptions" Spec::Runner.configure do |config| config.mock_with RR::Adapters::Rspec end Sinatra::Application.use ShowTestExceptions Sinatra::Application.set :raise_errors, true Sinatra::Application.set :show_exceptions, false JsTestCore::App.set :raise_errors, true JsTestCore::App.set :show_exceptions, false Sinatra::Application.use(JsTestCore::App)