File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spec/test/components/dynamic/form Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1380,8 +1380,8 @@ def form_config
1380
1380
expect ( DummyChildModel . find ( id_of_child_0 ) . files [ 0 ] . blob . filename ) . to eq ( "matestack-logo.png" )
1381
1381
expect ( DummyChildModel . find ( id_of_child_0 ) . files [ 1 ] . blob . filename ) . to eq ( "corgi.mp4" )
1382
1382
1383
- expect ( DummyChildModel . find ( id_of_child_1 ) . file . nil? || DummyChildModel . find ( id_of_child_1 ) . file &. blob &. nil? ) . to be true
1384
- expect ( DummyChildModel . find ( id_of_child_1 ) . files . empty ?) . to be true
1383
+ expect ( DummyChildModel . find ( id_of_child_1 ) . file . attached? ) . to be false
1384
+ expect ( DummyChildModel . find ( id_of_child_1 ) . files . attached ?) . to be false
1385
1385
1386
1386
expect ( DummyChildModel . find ( id_of_child_2 ) . file . blob . filename ) . to eq ( "corgi.mp4" )
1387
1387
expect ( DummyChildModel . find ( id_of_child_2 ) . files [ 0 ] . blob . filename ) . to eq ( "matestack-logo.png" )
You can’t perform that action at this time.
0 commit comments