Browse files

Remove invalid test

`Layout.configure` does not support the signature exercised by this
test. The test only passes because it is using an invalid signature--the
functionality implied by the test is not supported. This means that
correcting the invocation results in a failing test, so the test should
be thrown out.
  • Loading branch information...
1 parent 3209ab0 commit 3eb2875b305a18833659db02f2bc4200a63e9f89 @jugglinmike jugglinmike committed Mar 24, 2013
Showing with 0 additions and 18 deletions.
  1. +0 −18 test/configure.js
View
18 test/configure.js
@@ -98,24 +98,6 @@ test("defaults", 18, function() {
ok(_.isFunction(view.options.render), "View: render is a function");
});
-// Do not allow invalid option assignments to go through.
-test("invalid", 2, function() {
- // Configure an invalid property.
- Backbone.Layout.configure("key", "val");
-
- // Create a new Layout to test.
- var layout = new this.Layout();
- // Create a new View to test.
- var view = new this.View();
-
- // The assignment should yield undefined since it was invalid inside all
- // Layouts.
- equal(layout.options.key, undefined, "Layout: Invalid assignment");
- // The assignment should yield undefined since it was invalid inside all
- // Views.
- equal(view.options.key, undefined, "View: Invalid assignment");
-});
-
// Test overriding a single property to ensure propagation works as expected.
test("global", 4, function() {
// Configure prefix property globally.

0 comments on commit 3eb2875

Please sign in to comment.