 
 QUnit.module "Batman.View: data-render-if bindings"
 
-asyncTest 'it should not render the inner nodes until the keypath is truthy', 4, ->
+asyncTest 'should not render inner nodes until keypath is truthy', 4, ->
   context = proceed: false
 
   source = '<div data-renderif="proceed"><span data-bind="deferred">unrendered</span></div>'

    equal $('span', node).html(), 'bar'
    QUnit.start()

asyncTest 'it should continue rendering on the node it stopped rendering', 2, ->
  context = proceed: false, foo: "bar"

  source = '<div data-bind="foo" data-renderif="proceed" >unrendered</div>'


    QUnit.start()

asyncTest 'should render inner nodes and remove attribute if keypath is truthy', 2, ->
  context = { proceed: true, deferred: 'inner value' }

  source = '<div class="foo" data-renderif="proceed"><span data-bind="deferred">unrendered</span></div>'

  helpers.render source, context, (node, view) ->
    equal $('span', node).html(), 'inner value'
    equal $('.foo', node).attr('data-renderif'), undefined

    QUnit.start()

asyncTest 'should render inner nodes in same context as node was in when it deferred rendering', 2, ->
  context =
    proceed: false
    foo: Batman
