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
before(:each) do
reset_test_db!
@obj = DummyModel.new(:casted_attribute => {:name => 'whatever'})
@obj.save.should be_true
@obj = DummyModel.get(@obj.id)

View file

@ -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')

View file

@ -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

View file

@ -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