derickbailey/backbone.modelbinding — Issue #63: Invalid test for `display` convention
Author: toots
Created: 2012-02-08 00:10:45+00:00
State: open

Hi,

In this test:
https://github.com/derickbailey/backbone.modelbinding/blob/master/spec/javascripts/dataBindConvention.spec.js#L130
`this.el` can be checked, by adding a line `console.log(this.el.clone());` to be:

[

​

​]

Which is documented as:

When the model's property is set to false, the HTML element's display css will be set to none.
When the model's property is set to true, the HTML element's display css will be set to block.

Therefore, the test should be:

expect(this.el).toBeVisible();

in which case it fails.