require "spec_helper" describe JsRoutes, "compatibility with AMD/require.js" do before(:each) do evaljs("window.GlobalCheck = {};") evaljs("window.define = function (requirs, callback) { window.GlobalCheck['js-routes'] = callback.call(this); return window.GlobalCheck['js-routes']; };") evaljs("window.define.amd = { jQuery: true };") strRequire =<