So I’m trying to test a component, which accesses a property on the parent controller, that’s populated from the store.
App.AddressFormComponent = Ember.Component.extend({
countries: Ember.computed.alias('parentController.countries')
})
My question is how to properly pass countries in, so when the component tries to do this.get(‘countries’).find(), it works?
moduleForComponent('address-form')
test('', function() {
var component = this.subject({
countries: this.store.find('country') // (this doesn't work )
})
})
Or maybe theres a better way to do this?