Skip to content

Commit

Permalink
Simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
santana committed Apr 11, 2012
1 parent 36508d0 commit 91cbafa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/testcase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 91cbafa

Please sign in to comment.