Skip to content

Commit 1b0284b

Browse files
committed
use Mysql2::Result
1 parent d3c55d2 commit 1b0284b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec/mysql2/statement_spec.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@
3333
statement2.field_count.should == 1
3434
end
3535

36-
# statement2 = @client.prepare 'SELECT 1'
37-
# statement2.field_count.should == 1
38-
# end
36+
it "should tell us the result count" do
37+
statement = @client.prepare 'SELECT 1'
38+
result = statement.execute
39+
result.count.should == 1
40+
end
3941

4042
it "should let us execute our statement" do
4143
statement = @client.prepare 'SELECT 1'

0 commit comments

Comments
 (0)