diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2017-02-06 11:12:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-06 11:12:52 -0500 |
commit | e3afc83631ebe2dbb3c4368756577bdd92ea1d62 (patch) | |
tree | 80153c29b0ce45de42328647443f89812357867d /activerecord/test/cases/adapters/mysql2 | |
parent | bed90df099f62ea8be9fe19b889f5a0b080525b0 (diff) | |
parent | c8b5d828e7abbbbcf1f0854896453e8b29ab5d42 (diff) | |
download | rails-e3afc83631ebe2dbb3c4368756577bdd92ea1d62.tar.gz rails-e3afc83631ebe2dbb3c4368756577bdd92ea1d62.tar.bz2 rails-e3afc83631ebe2dbb3c4368756577bdd92ea1d62.zip |
Merge pull request #27919 from bf4/correct_spelling
Correct spelling
Diffstat (limited to 'activerecord/test/cases/adapters/mysql2')
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/active_schema_test.rb | 4 | ||||
-rw-r--r-- | activerecord/test/cases/adapters/mysql2/connection_test.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/active_schema_test.rb b/activerecord/test/cases/adapters/mysql2/active_schema_test.rb index 2a528b2cb1..67e1efde27 100644 --- a/activerecord/test/cases/adapters/mysql2/active_schema_test.rb +++ b/activerecord/test/cases/adapters/mysql2/active_schema_test.rb @@ -92,8 +92,8 @@ class Mysql2ActiveSchemaTest < ActiveRecord::Mysql2TestCase assert_equal expected, actual end - expected = "ALTER TABLE `peaple` ADD INDEX `index_peaple_on_last_name` USING btree (`last_name`(10)), ALGORITHM = COPY" - actual = ActiveRecord::Base.connection.change_table(:peaple, bulk: true) do |t| + expected = "ALTER TABLE `people` ADD INDEX `index_people_on_last_name` USING btree (`last_name`(10)), ALGORITHM = COPY" + actual = ActiveRecord::Base.connection.change_table(:people, bulk: true) do |t| t.index :last_name, length: 10, using: :btree, algorithm: :copy end assert_equal expected, actual diff --git a/activerecord/test/cases/adapters/mysql2/connection_test.rb b/activerecord/test/cases/adapters/mysql2/connection_test.rb index bae283a048..1f94472390 100644 --- a/activerecord/test/cases/adapters/mysql2/connection_test.rb +++ b/activerecord/test/cases/adapters/mysql2/connection_test.rb @@ -120,7 +120,7 @@ class Mysql2ConnectionTest < ActiveRecord::Mysql2TestCase end end - def test_passing_arbitary_flags_to_adapter + def test_passing_arbitrary_flags_to_adapter run_without_connection do |orig_connection| ActiveRecord::Base.establish_connection(orig_connection.merge(flags: Mysql2::Client::COMPRESS)) assert_equal (Mysql2::Client::COMPRESS | Mysql2::Client::FOUND_ROWS), ActiveRecord::Base.connection.raw_connection.query_options[:flags] |