Permalink
Browse files

Simplifications

  • Loading branch information...
1 parent 36508d0 commit 91cbafa03b747f36ad7255eebc8a743175bf6317 @santana committed Apr 11, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 test/testcase.rb
View
@@ -105,8 +105,7 @@ def populate_test_table
sql = "insert into test values(#{"?," * (@rows[1].size - 1)}#{"?"})"
assert_nothing_raised(Informix::Error, "Inserting record with stmt.execute, sql = [#{sql}]") do
- stmt = db.prepare sql
- stmt.execute(*@rows[1])
+ db.prepare sql {|stmt| stmt.execute(*@rows[1]) }
end
ensure
rewind_data

0 comments on commit 91cbafa

Please sign in to comment.