Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed the "save bug should fix" spec
  • Loading branch information
RayMorgan committed Dec 18, 2008
1 parent 12c0908 commit b5ec8ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/couchrest/core/model_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit b5ec8ba

Please sign in to comment.