corrected some spec dependencies
This commit is contained in:
parent
5607936540
commit
2aeb90721e
4 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
end
|
||||
|
|
|
@ -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
|
||||
end
|
||||
|
|
|
@ -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
|
||||
end
|
||||
|
|
|
@ -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
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue