Sha256: 77d333c46fafc7b436e8ea248dcc57d65a6db8f112d56eaaed52399f0775db4b

Contents?: true

Size: 727 Bytes

Versions: 7

Compression:

Stored size: 727 Bytes

Contents

describe("jasmine.util", function() {
  describe("extend", function () {
    it("should add properies to a destination object ", function() {
      var destination = {baz: 'baz'};
      jasmine.util.extend(destination, {
        foo: 'foo', bar: 'bar'
      });
      expect(destination).toEqual({foo: 'foo', bar: 'bar', baz: 'baz'});
    });

    it("should replace properies that already exist on a destination object", function() {
      var destination = {foo: 'foo'};
      jasmine.util.extend(destination, {
        foo: 'bar'
      });
      expect(destination).toEqual({foo: 'bar'});
      jasmine.util.extend(destination, {
        foo: null
      });
      expect(destination).toEqual({foo: null});
    });
  });
});

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
shuriken-0.2.1 vendor/jasmine-0.10.0/spec/suites/UtilSpec.js
shuriken-0.1.4 vendor/jasmine-0.10.0/spec/suites/UtilSpec.js
shuriken-0.1.3.1 vendor/jasmine-0.10.0/spec/suites/UtilSpec.js
shuriken-0.1.3 vendor/jasmine-0.10.0/spec/suites/UtilSpec.js
jazz-0.1.1 vendor/jasmine/spec/suites/UtilSpec.js
jazrb-0.1.1 vendor/jasmine/spec/suites/UtilSpec.js
jazrb-0.1.0 vendor/jasmine/spec/suites/UtilSpec.js