lib/gumboot/shared_examples/database_schema.rb in aaf-gumboot-2.1.3 vs lib/gumboot/shared_examples/database_schema.rb in aaf-gumboot-2.1.4

- old
+ new

@@ -33,10 +33,11 @@ expect(db_collation).to eq('utf8_bin') query('SHOW TABLE STATUS').each do |table| table_name = table[:Name] next if table_name == 'schema_migrations' + expect(table).to( have_collations(%w[utf8_bin utf8mb4_bin], "`#{table_name}`") ) query("SHOW FULL COLUMNS FROM `#{table_name}`").each do |column| @@ -45,9 +46,10 @@ except_table == table_name.to_sym && except_columns.any? do |except_column| except_column == column[:Field].to_sym end end + expect(column) .to have_collations(%w[utf8_bin utf8mb4_bin], " `#{table_name}`.`#{column[:Field]}`") end end