diff --git a/spec/couchrest/more/casted_model_spec.rb b/spec/couchrest/more/casted_model_spec.rb index 880e0ee..a2b9216 100644 --- a/spec/couchrest/more/casted_model_spec.rb +++ b/spec/couchrest/more/casted_model_spec.rb @@ -70,6 +70,7 @@ describe CouchRest::CastedModel do describe "saved document with casted models" do before(:each) do + reset_test_db! @obj = DummyModel.new(:casted_attribute => {:name => 'whatever'}) @obj.save.should be_true @obj = DummyModel.get(@obj.id) @@ -94,4 +95,4 @@ describe CouchRest::CastedModel do end -end \ No newline at end of file +end diff --git a/spec/couchrest/more/extended_doc_attachment_spec.rb b/spec/couchrest/more/extended_doc_attachment_spec.rb index c75fc0c..a0213a6 100644 --- a/spec/couchrest/more/extended_doc_attachment_spec.rb +++ b/spec/couchrest/more/extended_doc_attachment_spec.rb @@ -4,6 +4,7 @@ describe "ExtendedDocument attachments" do describe "#has_attachment?" do before(:each) do + reset_test_db! @obj = Basic.new @obj.save.should == true @file = File.open(FIXTURE_PATH + '/attachments/test.html') @@ -126,4 +127,4 @@ describe "ExtendedDocument attachments" do @obj.attachment_url(@attachment_name).should == "#{Basic.database}/#{@obj.id}/#{@attachment_name}" end end -end \ No newline at end of file +end diff --git a/spec/couchrest/more/extended_doc_view_spec.rb b/spec/couchrest/more/extended_doc_view_spec.rb index 9045021..4a3e6ee 100644 --- a/spec/couchrest/more/extended_doc_view_spec.rb +++ b/spec/couchrest/more/extended_doc_view_spec.rb @@ -190,6 +190,7 @@ describe "ExtendedDocument views" do describe "with a lot of designs left around" do before(:each) do + reset_test_db! Article.by_date Article.view_by :field Article.by_field @@ -203,4 +204,4 @@ describe "ExtendedDocument views" do ddocs["rows"].length.should == 1 end end -end \ No newline at end of file +end diff --git a/spec/couchrest/more/property_spec.rb b/spec/couchrest/more/property_spec.rb index ec81d50..723c9ac 100644 --- a/spec/couchrest/more/property_spec.rb +++ b/spec/couchrest/more/property_spec.rb @@ -8,6 +8,7 @@ require File.join(FIXTURE_PATH, 'more', 'event') describe "ExtendedDocument properties" do before(:each) do + reset_test_db! @card = Card.new(:first_name => "matt") end @@ -126,4 +127,4 @@ describe "ExtendedDocument properties" do end end -end \ No newline at end of file +end