Skip to content

Commit

Permalink
Use mysql2_test instead of a new table
Browse files Browse the repository at this point in the history
  • Loading branch information
kanata2 committed Jun 23, 2017
1 parent c0be95a commit 5cc8675
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/mysql2/statement_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ def stmt_count
before(:each) do
@client.query "USE test"
@test_result = @client.prepare("SELECT * FROM mysql2_test ORDER BY id DESC LIMIT 1").execute
@client.query 'CREATE TABLE IF NOT EXISTS fieldsTest (blah varchar(10))'
end

it "method should exist" do
Expand All @@ -342,7 +341,7 @@ def stmt_count
end

it "should return an empty array for some statements that are not SELECT" do
result = @client.prepare("INSERT INTO fieldsTest (blah) VALUES (?)")
result = @client.prepare("INSERT INTO mysql2_test (id) VALUES (?)")
expect(result.fields).to eql([])
end
end
Expand Down

0 comments on commit 5cc8675

Please sign in to comment.