spec/support/integration_helper.rb in rubix-0.4.2 vs spec/support/integration_helper.rb in rubix-0.4.3
- old
+ new
@@ -74,10 +74,10 @@
truncate_all_tables
$RUBIX_INTEGRATION_TEST = api_connection
end
- RUBIX_TABLES_TO_TRUNCATE = %w[applications groups hostmacro hosts hosts_groups hosts_profiles hosts_profiles_ext hosts_templates items items_applications profiles triggers trigger_depends history sessions]
+ RUBIX_TABLES_TO_TRUNCATE = %w[applications groups hostmacro hosts hosts_groups hosts_profiles hosts_profiles_ext hosts_templates items items_applications profiles triggers trigger_depends history sessions media_type]
def self.truncate_all_tables
return unless $RUBIX_INTEGRATION_TEST
RUBIX_TABLES_TO_TRUNCATE.each { |table| $RUBIX_MYSQL_CLIENT.query("TRUNCATE TABLE #{table}") }
end