Skip to content

Commit 96106a1

Browse files
Move migration test together with other join table tests
1 parent c2c1ecb commit 96106a1

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

activerecord/test/cases/migration/create_join_table_test.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ def test_create_join_table_with_strings
3535
assert_equal %w(artist_id music_id), connection.columns(:artists_musics).map(&:name).sort
3636
end
3737

38+
def test_create_join_table_with_symbol_and_string
39+
connection.create_join_table :artists, 'musics'
40+
41+
assert_equal %w(artist_id music_id), connection.columns(:artists_musics).map(&:name).sort
42+
end
43+
3844
def test_create_join_table_with_the_proper_order
3945
connection.create_join_table :videos, :musics
4046

activerecord/test/cases/migration_test.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -755,11 +755,4 @@ def test_copying_migrations_to_empty_directory
755755
ensure
756756
clear
757757
end
758-
759-
def test_create_join_table_with_symbol_and_string
760-
connection.create_join_table :artists, 'musics'
761-
762-
assert_equal %w(artist_id music_id), connection.columns(:artists_musics).map(&:name).sort
763-
end
764-
765758
end

0 commit comments

Comments
 (0)