Commit 99282a82 authored by Addy Osmani's avatar Addy Osmani

Merge pull request #186 from runawaygo/master

Fixed the failed testcases on views in project emberjs_require.
parents 2aef4b5d c2abe8ee
......@@ -8,7 +8,7 @@ describe( 'views/*', function() {
require( [ 'text!app/views/clear_button.html' ], function( html ){
expect( html ).to.be.a( 'string' );
expect( html ).to.match( /completedCount/ );
expect( Em.Handlebars.compile( html ) ).to.not.throw( Error );
expect( function(){ Em.Handlebars.compile( html ) } ).to.not.throw( Error );
done();
});
});
......@@ -21,7 +21,7 @@ describe( 'views/*', function() {
expect( html ).to.match( /Todos\.todosController/ );
expect( html ).to.match( /Checkbox/ );
expect( html ).to.match( /class="toggle"/ );
expect( Em.Handlebars.compile( html ) ).to.not.throw( Error );
expect( function(){ Em.Handlebars.compile( html ) } ).to.not.throw( Error );
done();
});
});
......
......@@ -2,9 +2,9 @@
{{#unless content.editing}}
{{#view Todos.todosController.todoView contentBinding="content" }}
{{view Ember.Checkbox valueBinding="content.completed" class="toggle"}}
{{#view Ember.View tagName="label" todoBinding="content"}}
{{todo.title}}
{{/view}}
{{#view Ember.View tagName="label" todoBinding="content"}}
{{todo.title}}
{{/view}}
{{view Ember.Button target="Todos.todosController" action="removeObject" class="destroy" todoBinding="content"}}
{{/view}}
{{else}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment