Skip to content

Commit

Permalink
Merge pull request #27 from jaridmargolin/master
Browse files Browse the repository at this point in the history
Return Object on Cocktail.mixin()
  • Loading branch information
mrjoelkemp committed Feb 17, 2014
2 parents 2100b42 + ceb42b9 commit 3ebb1af
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
.DS_Store
bower_components
4 changes: 3 additions & 1 deletion Cocktail.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Cocktail.js 0.3.0
// Cocktail.js 0.5.3
// (c) 2012 Onsi Fakhouri
// Cocktail.js may be freely distributed under the MIT license.
// http://github.com/onsi/cocktail
Expand Down Expand Up @@ -63,6 +63,8 @@
return returnValue;
};
});

return klass;
};

var originalExtend;
Expand Down
2 changes: 1 addition & 1 deletion Cocktail.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "backbone.cocktail",
"version": "0.5.2",
"version": "0.5.3",
"homepage": "https://github.com/onsi/cocktail",
"authors": [
"Onsi Fakhouri <[email protected]>"
Expand Down
8 changes: 8 additions & 0 deletions spec/spec/CocktailSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,14 @@ describe('Cocktail', function() {
var view = new ViewClass();
expect(_.isArray(view.sampleArray)).toBeTruthy();
});

it('should return the result mixed object', function () {
var A = { b: 'c' },
D = { e: 'f' };

var result = Cocktail.mixin(A, D);
expect(Cocktail.mixin(A, D) == A).toBeTruthy();
});
});

describe('when patching backbone', function() {
Expand Down

0 comments on commit 3ebb1af

Please sign in to comment.