You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raise"Dashboard Export Zip file does not exist"unlessFile.exist?(dashboard_export_zip)
124
+
raise"Dashboard Export Zip file is not a zip file"unlessFile.extname(dashboard_export_zip) == '.zip'
123
125
raise"Target Database YAML file does not exist"unlessFile.exist?(target_database_yaml_file)
124
-
raise"Only 1 Database YAML file is allowed in the zip file"ifdashboard_config[:databases].size > 1
126
+
raise"Currently this class handles boards with single Database configs only. Multiple Database configs exist in zip file."ifdashboard_config[:databases].size > 1
125
127
raise"Target Database Schema cannot be blank"iftarget_database_schema.blank?
expect{service.send(:validate_params)}.toraise_error(RuntimeError,"Currently this class handles boards with single Database configs only. Multiple Database configs exist in zip file.")
87
+
end
88
+
end
89
+
90
+
context'when target_database_schema is blank'do
91
+
let(:target_database_schema){''}
92
+
93
+
it'raises an error'do
94
+
expect{service.send(:validate_params)}.toraise_error(RuntimeError,"Target Database Schema cannot be blank")
0 commit comments