Sha256: e86d7973ae8eec8ae2208785d722d97f7ab47928890a3596bc96a933ebd11f49

Contents?: true

Size: 304 Bytes

Versions: 9

Compression:

Stored size: 304 Bytes

Contents

beforeEach(function() {
  var matchers = {
    toBeFunction: function() {
      return this.actual instanceof Function;
    },
    toBeWithinOf: function(expected, delta) {
    return ((expected - delta) <= this.actual && (expected + delta) >= this.actual);
    }
  };

  this.addMatchers(matchers);
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gmaps4rails-2.1.2 spec/javascripts/helpers/matchers.js
gmaps4rails-2.1.1 spec/javascripts/helpers/matchers.js
gmaps4rails-2.1.0 spec/javascripts/helpers/matchers.js
gmaps4rails-2.0.5 spec/javascripts/helpers/matchers.js
gmaps4rails-2.0.4 spec/javascripts/helpers/matchers.js
gmaps4rails-2.0.3 spec/javascripts/helpers/matchers.js
gmaps4rails-2.0.2 spec/javascripts/helpers/matchers.js
gmaps4rails-2.0.1 spec/javascripts/helpers/matchers.js
gmaps4rails-2.0.0 spec/javascripts/helpers/matchers.js