Commit 1d41e90 1 parent d1b168a commit 1d41e90 Copy full SHA for 1d41e90
File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,9 @@ def test_restore_item!
64
64
65
65
@snapshot_item = @snapshot . snapshot_items . first
66
66
67
- @snapshot_item . restore_item!
67
+ assert_nothing_raised do
68
+ @snapshot_item . restore_item!
69
+ end
68
70
end
69
71
70
72
def test_restore_item_handles_dropped_columns!
@@ -77,7 +79,9 @@ def test_restore_item_handles_dropped_columns!
77
79
78
80
snapshot_item . update! ( object : attrs )
79
81
80
- snapshot_item . restore_item!
82
+ assert_nothing_raised do
83
+ snapshot_item . restore_item!
84
+ end
81
85
end
82
86
83
87
end
Original file line number Diff line number Diff line change @@ -144,7 +144,9 @@ def test_snapshot_item_handles_enum_values_from_select_statement
144
144
def test_restore
145
145
@snapshot = @snapshot_klass . first
146
146
147
- @snapshot . restore!
147
+ assert_nothing_raised do
148
+ @snapshot . restore!
149
+ end
148
150
end
149
151
150
152
def test_fetch_reified_items_with_readonly
@@ -202,7 +204,9 @@ def test_fetch_reified_items_handles_dropped_columns!
202
204
203
205
snapshot_item . update! ( object : attrs )
204
206
205
- reified_items = snapshot . fetch_reified_items ( readonly : false )
207
+ assert_nothing_raised do
208
+ snapshot . fetch_reified_items ( readonly : false )
209
+ end
206
210
end
207
211
208
212
def test_single_model_snapshots_without_children
You can’t perform that action at this time.
0 commit comments