Permalink
Browse files

Move migration test together with other join table tests

  • Loading branch information...
carlosantoniodasilva committed Nov 21, 2012
1 parent c2c1ecb commit 96106a1493f755d1ed90250f9a98c5fcb600a6cc
@@ -35,6 +35,12 @@ def test_create_join_table_with_strings
assert_equal %w(artist_id music_id), connection.columns(:artists_musics).map(&:name).sort
end
+ def test_create_join_table_with_symbol_and_string
+ connection.create_join_table :artists, 'musics'
+
+ assert_equal %w(artist_id music_id), connection.columns(:artists_musics).map(&:name).sort
+ end
+
def test_create_join_table_with_the_proper_order
connection.create_join_table :videos, :musics
@@ -755,11 +755,4 @@ def test_copying_migrations_to_empty_directory
ensure
clear
end
-
- def test_create_join_table_with_symbol_and_string
- connection.create_join_table :artists, 'musics'
-
- assert_equal %w(artist_id music_id), connection.columns(:artists_musics).map(&:name).sort
- end
-
end

0 comments on commit 96106a1

Please sign in to comment.