Merge branch 'save-bug' of git://github.com/raycmorgan/couchrest into raycmorgan/save-bug

This commit is contained in:
Chris Anderson 2008-12-31 14:48:29 -08:00
commit a3ac5fc4e8

View file

@ -89,8 +89,11 @@ class Player < CouchRest::Model
end end
describe "save bug" do describe "save bug" do
before(:each) do
CouchRest::Model.default_database = reset_test_db!
end
it "should fix" do it "should fix" do
@db = reset_test_db!
@p = Player.new @p = Player.new
@p.email = 'insane@fakestreet.com' @p.email = 'insane@fakestreet.com'
@p.save @p.save