You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it"can validate the presence of an association"doTestModel.validates_presence_of:child_modelsexpect_promisedo@test_model=TestModel.new@test_model.child_models << ChildModel.new@test_model.validate.then{ |test_model| test_model.errors.messages}end.tobe_emptyend
it"the server method can access any unsaved associations"doisomorphicdoTestModel.server_method(:test){child_models.count}endexpect_promisedotest_model=TestModel.newChildModel.new(test_model: test_model)ReactiveRecord.loaddotest_model.testendend.toeq(1)end
(the child relationship is not being correctly rematerialized on the server)
These specs will fail:
(the child relationship is not being correctly rematerialized on the server)