Skip to content

Commit 3fe0a8e

Browse files
committed
problem in test spec
1 parent b2f79a1 commit 3fe0a8e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ruby/hyper-model/spec/batch2/relationships_spec.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,14 @@ def update_relationship
300300
end
301301
end
302302
end
303-
before_mount { TestComponent4.child_model = ChildModel.new(child_attribute: 'hello') }
304-
render { DIV { TestComponent4.child_model.test_model&.test_attribute } }
303+
before_mount do
304+
TestComponent4.child_model = ChildModel.new(child_attribute: 'hello')
305+
end
306+
render do
307+
DIV do
308+
TestComponent4.child_model.test_model&.test_attribute
309+
end
310+
end
305311
end
306312
end
307313
evaluate_ruby do

0 commit comments

Comments
 (0)