corrected some spec dependencies
This commit is contained in:
parent
5607936540
commit
2aeb90721e
|
@ -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)
|
||||||
|
|
|
@ -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')
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue