- test "unique uuid index exists on all models with the column uuid" do
- tables = ActiveRecord::Base.connection.tables
- tables.each do |table|
- columns = ActiveRecord::Base.connection.columns(table)
-
- uuid_column = columns.select do |column|
- column.name == 'uuid'
- end
-
- if !uuid_column.empty?
- indexes = ActiveRecord::Base.connection.indexes(table)
- uuid_index = indexes.select do |index|
- index.columns == ['uuid'] and index.unique == true
- end
-
- assert !uuid_index.empty?, "#{table} does not have unique uuid index"
- end
+ test "store long string" do
+ set_user_from_auth :active
+ longstring = "a"
+ while longstring.length < 2**16
+ longstring = longstring + longstring