Skip to content

Rename test #1282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/cases/coerced_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1569,16 +1569,16 @@ def test_named_bind_with_literal_colons_coerced

class SchemaDumperTest < ActiveRecord::TestCase
# Use nvarchar string (N'') in assert
coerce_tests! :test_dump_schema_information_outputs_lexically_reverse_ordered_versions_regardless_of_database_order
def test_dump_schema_information_outputs_lexically_reverse_ordered_versions_regardless_of_database_order_coerced
coerce_tests! :test_dump_schema_versions_outputs_lexically_reverse_ordered_versions_regardless_of_database_order
def test_dump_schema_versions_outputs_lexically_reverse_ordered_versions_regardless_of_database_order_coerced
versions = %w{ 20100101010101 20100201010101 20100301010101 }
versions.shuffle.each do |v|
@schema_migration.create_version(v)
end

schema_info = ActiveRecord::Base.lease_connection.dump_schema_information
schema_info = ActiveRecord::Base.lease_connection.dump_schema_versions
expected = <<~STR
INSERT INTO #{ActiveRecord::Base.lease_connection.quote_table_name("schema_migrations")} (version) VALUES
INSERT INTO #{quote_table_name("schema_migrations")} (version) VALUES
(N'20100301010101'),
(N'20100201010101'),
(N'20100101010101');
Expand Down