Permalink
Browse files

Add a test for #1052.

  • Loading branch information...
1 parent b37a096 commit 111d5a1f19bb92fed6dac0c977843894baa4fe77 @braddunbar braddunbar committed Feb 27, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 test/sync.js
View
@@ -131,12 +131,18 @@ $(document).ready(function() {
});
test("sync: urlError", function() {
- model = new Backbone.Model();
+ var model = new Backbone.Model();
raises(function() {
model.fetch();
});
model.fetch({url: '/one/two'});
equal(lastRequest.url, '/one/two');
});
+ test("#1052 - `options` is optional.", function() {
+ var model = new Backbone.Model();
+ model.url = '/test';
+ Backbone.sync('create', model);
+ });
+
});

0 comments on commit 111d5a1

Please sign in to comment.