test/test_scheme.rb in swift-0.8.1 vs test/test_scheme.rb in swift-0.9.0
- old
+ new
@@ -76,10 +76,10 @@
Swift.db.delete @user
assert_nil @user.get(id: 1)
end
it 'adapter should delete only relevant rows given condition & scheme' do
- Swift.db.create(@user, {name: 'dave'}, {name: 'mike'})
+ Swift.db.create(@user, [{name: 'dave'}, {name: 'mike'}])
assert_equal 2, @user.all.rows
Swift.db.delete @user, ':name = ?', 'dave'
assert_nil @user.first ':name = ?', 'dave'
assert @user.first ':name = ?', 'mike'