Sha256: 0971a3294dc03923fb000c85cb8fc95b2754167cb7e8547914827d7b2d732749

Contents?: true

Size: 1.27 KB

Versions: 40

Compression:

Stored size: 1.27 KB

Contents

getJasmineRequireObj().interface = function(jasmine, env) {
  var jasmineInterface = {
    describe: function(description, specDefinitions) {
      return env.describe(description, specDefinitions);
    },

    xdescribe: function(description, specDefinitions) {
      return env.xdescribe(description, specDefinitions);
    },

    it: function(desc, func) {
      return env.it(desc, func);
    },

    xit: function(desc, func) {
      return env.xit(desc, func);
    },

    beforeEach: function(beforeEachFunction) {
      return env.beforeEach(beforeEachFunction);
    },

    afterEach: function(afterEachFunction) {
      return env.afterEach(afterEachFunction);
    },

    expect: function(actual) {
      return env.expect(actual);
    },

    pending: function() {
      return env.pending();
    },

    spyOn: function(obj, methodName) {
      return env.spyOn(obj, methodName);
    },

    jsApiReporter: new jasmine.JsApiReporter({
      timer: new jasmine.Timer()
    }),

    jasmine: jasmine
  };

  jasmine.addCustomEqualityTester = function(tester) {
    env.addCustomEqualityTester(tester);
  };

  jasmine.addMatchers = function(matchers) {
    return env.addMatchers(matchers);
  };

  jasmine.clock = function() {
    return env.clock;
  };

  return jasmineInterface;
};

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
upjs-rails-0.7.1 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.7.0 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.6.5 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.6.4 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.6.3 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.6.2 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.6.1 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.6.0 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.5.0 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.4.4 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.4.3 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.4.2 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.4.1 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.4.0 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.3.3 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.3.2 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.3.0 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.2.2 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.2.1 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js
upjs-rails-0.2.0 spec_app/vendor/assets/bower_components/jasmine/src/core/requireInterface.js