//= require sinonjs/sinon
//= require requirejs/require
//= require require_config
//= require jquery
var expect = chai.expect;

// Required for Google Tag Manager
dataLayer = [];

// Any properties that require Ruby @ runtime
var MAS = window.MAS || {};
MAS.bootstrap = {
  env: 'production',
  timestamp: new Date().getTime(),
  I18n_locale: 'en'
};

MAS.supports = (function(w,d){
  var S = {};
  function supportTest(prop, context){
    try {
      return prop in context && context[prop] !== null;
    } catch (e) {
      return false;
    }
  }

  S.fonts = false; // Required for webfont loader to work, default false, set true in view/base
  S.js = ( supportTest('querySelector',d) && supportTest('localStorage',w) && supportTest('addEventListener',w) ) ? 'advanced' : 'basic';
  S.touch = ( supportTest('ontouchstart', w) || supportTest('onmsgesturechange',w) );
  S.localstorage = supportTest('localStorage', w);

  return S;
})(window, document);
//= require sinonjs/sinon
//= require requirejs/require
//= require require_config
//= require jquery
var expect = chai.expect;

// Required for Google Tag Manager
dataLayer = [];

// Any properties that require Ruby @ runtime
var MAS = window.MAS || {};
MAS.bootstrap = {
  env: 'production',
  timestamp: new Date().getTime(),
  I18nLocale: 'en'
};

MAS.supports = (function(w,d){
  var S = {};
  function supportTest(prop, context){
    try {
      return prop in context && context[prop] !== null;
    } catch (e) {
      return false;
    }
  }

  S.fonts = false; // Required for webfont loader to work, default false, set true in view/base
  S.js = ( supportTest('querySelector',d) && supportTest('localStorage',w) && supportTest('addEventListener',w) ) ? 'advanced' : 'basic';
  S.touch = ( supportTest('ontouchstart', w) || supportTest('onmsgesturechange',w) );
  S.localstorage = supportTest('localStorage', w);

  return S;
})(window, document);

Fix broken spec