corrected some spec dependencies

This commit is contained in:
Matt 2009-03-08 14:27:30 +00:00
parent 5607936540
commit 2aeb90721e
4 changed files with 8 additions and 4 deletions

View file

@ -70,6 +70,7 @@ describe CouchRest::CastedModel do
describe "saved document with casted models" do describe "saved document with casted models" do
before(:each) do before(:each) do
reset_test_db!
@obj = DummyModel.new(:casted_attribute => {:name => 'whatever'}) @obj = DummyModel.new(:casted_attribute => {:name => 'whatever'})
@obj.save.should be_true @obj.save.should be_true
@obj = DummyModel.get(@obj.id) @obj = DummyModel.get(@obj.id)
@ -94,4 +95,4 @@ describe CouchRest::CastedModel do
end end
end end

View file

@ -4,6 +4,7 @@ describe "ExtendedDocument attachments" do
describe "#has_attachment?" do describe "#has_attachment?" do
before(:each) do before(:each) do
reset_test_db!
@obj = Basic.new @obj = Basic.new
@obj.save.should == true @obj.save.should == true
@file = File.open(FIXTURE_PATH + '/attachments/test.html') @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}" @obj.attachment_url(@attachment_name).should == "#{Basic.database}/#{@obj.id}/#{@attachment_name}"
end end
end end
end end

View file

@ -190,6 +190,7 @@ describe "ExtendedDocument views" do
describe "with a lot of designs left around" do describe "with a lot of designs left around" do
before(:each) do before(:each) do
reset_test_db!
Article.by_date Article.by_date
Article.view_by :field Article.view_by :field
Article.by_field Article.by_field
@ -203,4 +204,4 @@ describe "ExtendedDocument views" do
ddocs["rows"].length.should == 1 ddocs["rows"].length.should == 1
end end
end end
end end

View file

@ -8,6 +8,7 @@ require File.join(FIXTURE_PATH, 'more', 'event')
describe "ExtendedDocument properties" do describe "ExtendedDocument properties" do
before(:each) do before(:each) do
reset_test_db!
@card = Card.new(:first_name => "matt") @card = Card.new(:first_name => "matt")
end end
@ -126,4 +127,4 @@ describe "ExtendedDocument properties" do
end end
end end
end end