test/test_document.rb in couchpillow-0.3.2 vs test/test_document.rb in couchpillow-0.3.3
- old
+ new
@@ -153,6 +153,13 @@
rename :bla, :updated_at
end.new
end
end
+
+ def test_get_returns_nil
+ CouchPillow.db.expects(:get).with('123').returns(nil)
+ d = Document.get('123')
+ assert_equal nil, d
+ end
+
end