Fixed the "save bug should fix" spec

This commit is contained in:
RayMorgan 2008-12-17 23:09:01 -08:00
parent 12c09085df
commit b5ec8ba3c3

View file

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