aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/sqlite3/copy_table_test.rb
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-04-07 19:59:07 +0530
committerVipul A M <vipulnsward@gmail.com>2013-04-07 19:59:07 +0530
commit4f5e8af9931726631d5677b492921bffc6f0c7d1 (patch)
tree5eb64a03c1b01b67c3fbdf57c77ba9962242be99 /activerecord/test/cases/adapters/sqlite3/copy_table_test.rb
parent136e3a46e139e6105b0f18c29f7207bac7770be6 (diff)
downloadrails-4f5e8af9931726631d5677b492921bffc6f0c7d1.tar.gz
rails-4f5e8af9931726631d5677b492921bffc6f0c7d1.tar.bz2
rails-4f5e8af9931726631d5677b492921bffc6f0c7d1.zip
each to each_value; remove unused vars
Diffstat (limited to 'activerecord/test/cases/adapters/sqlite3/copy_table_test.rb')
-rw-r--r--activerecord/test/cases/adapters/sqlite3/copy_table_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/sqlite3/copy_table_test.rb b/activerecord/test/cases/adapters/sqlite3/copy_table_test.rb
index a5a22bc30b..e78cb88562 100644
--- a/activerecord/test/cases/adapters/sqlite3/copy_table_test.rb
+++ b/activerecord/test/cases/adapters/sqlite3/copy_table_test.rb
@@ -54,7 +54,7 @@ class CopyTableTest < ActiveRecord::TestCase
end
def test_copy_table_with_id_col_that_is_not_primary_key
- test_copy_table('goofy_string_id', 'goofy_string_id2') do |from, to, options|
+ test_copy_table('goofy_string_id', 'goofy_string_id2') do
original_id = @connection.columns('goofy_string_id').detect{|col| col.name == 'id' }
copied_id = @connection.columns('goofy_string_id2').detect{|col| col.name == 'id' }
assert_equal original_id.type, copied_id.type
@@ -65,7 +65,7 @@ class CopyTableTest < ActiveRecord::TestCase
end
def test_copy_table_with_unconventional_primary_key
- test_copy_table('owners', 'owners_unconventional') do |from, to, options|
+ test_copy_table('owners', 'owners_unconventional') do
original_pk = @connection.primary_key('owners')
copied_pk = @connection.primary_key('owners_unconventional')
assert_equal original_pk, copied_pk