Sha256: 559784e85294676880607da7f97ca7fcd738445cd71b99ed2df63de2ade8fd73

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1318648709.39537M¾:@value{	I"length:EFi‹I"digest;
F"%82cd14282c3beef3f5cdf78033fd887aI"source;
FI"‹(function(global) {
  
  var spyMatchers = "called calledOnce calledTwice calledThrice calledBefore calledAfter calledOn alwaysCalledOn calledWith alwaysCalledWith calledWithExactly alwaysCalledWithExactly".split(" "),
    i = spyMatchers.length,
    spyMatcherHash = {},
    unusualMatchers = {
      "returned": "toHaveReturned",
      "alwaysReturned": "toHaveAlwaysReturned"
    },
    
  getMatcherFunction = function(sinonName) {
    return function() {
      var sinonProperty = this.actual[sinonName];
      return (typeof sinonProperty === 'function') ? sinonProperty.apply(this.actual, arguments) : sinonProperty;
    };
  };
    
  while(i--) {
    var sinonName = spyMatchers[i],
      matcherName = "toHaveBeen" + sinonName.charAt(0).toUpperCase() + sinonName.slice(1);
      
    spyMatcherHash[matcherName] = getMatcherFunction(sinonName);
  };
  
  for (var j in unusualMatchers) {
    spyMatcherHash[unusualMatchers[j]] = getMatcherFunction(j);
  }
  
  global.sinonJasmine = {
    getMatchers: function() {
      return spyMatcherHash;
    }
  };
  
})(window);

beforeEach(function() {
  
  this.addMatchers(sinonJasmine.getMatchers());
  
});
;
FI"
_version;
F"%cfe72483c3243f2d9b2d4d605dba2a27

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
test_track-0.0.4 test/dummy/tmp/cache/assets/CC8/A90/sprockets%2Ff8c2682b92768c1c995a42b0d7d64599