test/model/user_test.rb in fauna-0.2.2 vs test/model/user_test.rb in fauna-0.2.3
- old
+ new
@@ -14,9 +14,14 @@
assert_equal "Gurgi", user.name
assert user.persisted?
assert user.ref
end
+ def test_all
+ user = Fauna::User.create(@attributes)
+ assert Fauna::User.all.resources.include?(user)
+ end
+
def test_save
user = Fauna::User.new(@attributes)
user.save
assert user.persisted?
end