test/non_instance_test.rb in querrel-1.2.0 vs test/non_instance_test.rb in querrel-1.3.0
- old
+ new
@@ -12,9 +12,10 @@
res = Querrel.query(Brand.all, on: @dbs)
num_brands = Brand.count
assert_equal num_brands * @dbs.length, res.length,
"Not returning the correct number of results"
+ assert res.all?{ |r| r.is_a?(Brand) }
end
def test_map
res = Querrel.map(Brand.all, on: @dbs)
num_brands = Brand.count
\ No newline at end of file