Skip to content

Commit cdc9321

Browse files
committed
That statement spec needs to be in expect format
1 parent 4d76557 commit cdc9321

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/mysql2/statement_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,19 @@
8383
result = statement.execute
8484
expect(result.to_a.length).to eq(1)
8585
end
86+
end
8687

8788
it "should handle comparisons and likes" do
8889
@client.query 'USE test'
8990
@client.query 'CREATE TABLE IF NOT EXISTS mysql2_stmt_q(a int, b varchar(10))'
9091
@client.query 'INSERT INTO mysql2_stmt_q (a, b) VALUES (1, "Hello"), (2, "World")'
9192
statement = @client.prepare 'SELECT * FROM mysql2_stmt_q WHERE a < ?'
9293
results = statement.execute(2)
93-
results.first.should == {"a" => 1, "b" => "Hello"}
94+
expect(results.first).to eq({"a" => 1, "b" => "Hello"})
9495

9596
statement = @client.prepare 'SELECT * FROM mysql2_stmt_q WHERE b LIKE ?'
9697
results = statement.execute('%orld')
97-
results.first.should == {"a" => 2, "b" => "World"}
98+
expect(results.first).to eq({"a" => 2, "b" => "World"})
9899

99100
@client.query 'DROP TABLE IF EXISTS mysql2_stmt_q'
100101
end

0 commit comments

Comments
 (0)