File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
spec/generators/migration Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 3636 if ActivityNotification . config . orm == :active_record
3737 it 'can be executed to migrate scheme' do
3838 require subject
39- CreateActivityNotificationTables . new . migrate ( :down )
40- CreateActivityNotificationTables . new . migrate ( :up )
39+ # Suppress migration output during tests
40+ old_verbose = ActiveRecord ::Migration . verbose
41+ ActiveRecord ::Migration . verbose = false
42+ begin
43+ CreateActivityNotificationTables . new . migrate ( :down )
44+ CreateActivityNotificationTables . new . migrate ( :up )
45+ ensure
46+ ActiveRecord ::Migration . verbose = old_verbose
47+ end
4148 end
4249 end
4350 end
5663 if ActivityNotification . config . orm == :active_record
5764 it 'can be executed to migrate scheme' do
5865 require subject
59- CreateActivityNotificationTables . new . migrate ( :down )
60- CreateActivityNotificationTables . new . migrate ( :up )
66+ # Suppress migration output during tests
67+ old_verbose = ActiveRecord ::Migration . verbose
68+ ActiveRecord ::Migration . verbose = false
69+ begin
70+ CreateActivityNotificationTables . new . migrate ( :down )
71+ CreateActivityNotificationTables . new . migrate ( :up )
72+ ensure
73+ ActiveRecord ::Migration . verbose = old_verbose
74+ end
6175 end
6276 end
6377 end
You can’t perform that action at this time.
0 commit comments