Browse files

Add additional assertion for testing save with default model params

  • Loading branch information...
1 parent ec66240 commit e5158049f5a499e5adb0afc80d455915adf0f75a @nbudin nbudin committed Aug 22, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/jester_test.html
View
4 test/jester_test.html
@@ -549,6 +549,10 @@
assert(saved);
assert_changed();
});
+
+ Resource.model("User", {defaultParams: {extraOption: "blah"}});
+ var eric = User.build({ 'id' : '1', 'first_name' : 'eric' });
+ assert(eric.save());
}
function testSaveReloadsUponFullResponse() {

0 comments on commit e515804

Please sign in to comment.