diff --git a/test/models/snapshot_item_test.rb b/test/models/snapshot_item_test.rb index 2f1bd70..f0caf0d 100644 --- a/test/models/snapshot_item_test.rb +++ b/test/models/snapshot_item_test.rb @@ -64,7 +64,9 @@ def test_restore_item! @snapshot_item = @snapshot.snapshot_items.first - @snapshot_item.restore_item! + assert_nothing_raised do + @snapshot_item.restore_item! + end end def test_restore_item_handles_dropped_columns! @@ -77,7 +79,9 @@ def test_restore_item_handles_dropped_columns! snapshot_item.update!(object: attrs) - snapshot_item.restore_item! + assert_nothing_raised do + snapshot_item.restore_item! + end end end diff --git a/test/models/snapshot_test.rb b/test/models/snapshot_test.rb index 4c7c3cc..2389baa 100644 --- a/test/models/snapshot_test.rb +++ b/test/models/snapshot_test.rb @@ -144,7 +144,9 @@ def test_snapshot_item_handles_enum_values_from_select_statement def test_restore @snapshot = @snapshot_klass.first - @snapshot.restore! + assert_nothing_raised do + @snapshot.restore! + end end def test_fetch_reified_items_with_readonly @@ -202,7 +204,9 @@ def test_fetch_reified_items_handles_dropped_columns! snapshot_item.update!(object: attrs) - reified_items = snapshot.fetch_reified_items(readonly: false) + assert_nothing_raised do + snapshot.fetch_reified_items(readonly: false) + end end def test_single_model_snapshots_without_children