Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
Add expectations to spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Mar 31, 2019
1 parent f861d4d commit 8971767
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/async/mysql/client_spec.rb
Expand Up @@ -19,10 +19,11 @@
it "can stream results" do
results = connection.query("SELECT * FROM seq_1_to_3", stream: true)

rows = [{"seq" => 1}, {"seq" => 2}, {"seq" => 3}].each

results.each do |fields|
pp fields
expect(fields).to be == rows.next
end
# expect(.to_a).to be == [{"seq" => 1}, {"seq" => 2}, {"seq" => 3}]

connection.close
end
Expand Down

0 comments on commit 8971767

Please sign in to comment.