RactiveJS/Ractive — pull request #420 by martypdx (2014-01-29 19:22:32+00:00)
Title: A few new tests for components - issues with data update in magic mode

I know your busy whittling on this stuff, but a few tests. Biggest issue right now is that in magic mode data used in a component updates from within the component, but not from without (and it won't update anywhere even at the parent level):

Widget = Ractive.extend({
template: '{{world}}',
magic: true
});

var data = { world: 'mars' }
ractive = new Ractive({
el: fixture,
template: '{{world}}',
magic: true,
components: { widget: Widget },
data: data
});

data.world = 'venus'

t.htmlEqual( fixture.innerHTML, 'venusvenus' );