Permalink
Browse files

Fix warning with assigned but not used variable

  • Loading branch information...
1 parent 47971c8 commit cd5b2e1e56419c6871105eeabfe4dd177f8303bf @carlosantoniodasilva carlosantoniodasilva committed Nov 13, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
@@ -157,7 +157,6 @@ def test_quote_binary_column_escapes_it
binary = DualEncoding.new :name => 'いただきます!', :data => str
binary.save!
assert_equal str, binary.data
-
ensure
if "<3".respond_to?(:encode)
DualEncoding.connection.drop_table('dual_encodings')
@@ -167,8 +166,9 @@ def test_quote_binary_column_escapes_it
def test_type_cast_should_not_mutate_encoding
return skip('only test encoding on 1.9') unless "<3".encoding_aware?
- name = 'hello'.force_encoding(Encoding::ASCII_8BIT)
- owner = Owner.create(:name => name)
+ name = 'hello'.force_encoding(Encoding::ASCII_8BIT)
+ Owner.create(:name => name)
+
assert_equal Encoding::ASCII_8BIT, name.encoding
end

0 comments on commit cd5b2e1

Please sign in to comment.