Use DB::NoResultsError on QueryMethods (#125)

This commit is contained in:
Brian J. Cardiff 2020-04-06 18:36:37 -03:00 committed by GitHub
parent 7543908733
commit 511fe20253
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View file

@ -126,7 +126,7 @@ describe DummyDriver do
it "raises if no rows" do
with_dummy do |db|
expect_raises(DB::Error, "no rows") do
expect_raises(DB::NoResultsError) do
db.query_one("") { }
end
end