don't error when the given directories don't exist
This commit is contained in:
parent
7aaffe5d63
commit
d290357c78
2 changed files with 7 additions and 2 deletions
|
@ -108,6 +108,11 @@ describe CouchRest::FileManager, "pushing an app" do
|
|||
doc = @db.get("_design/couchapp")
|
||||
doc['magical'].should == "so magic"
|
||||
end
|
||||
it "handles not having a forms directory" do
|
||||
`rm -rf #{@appdir}/forms`
|
||||
lambda { @fm.push_app(@appdir, "couchapp") }.should_not raise_error
|
||||
`mkdir -p #{@appdir}/forms`
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue