moved app template
This commit is contained in:
parent
9faa9daaca
commit
5d3e684c6a
|
@ -20,7 +20,7 @@ module CouchRest
|
|||
# This is a class method because it doesn't depend on
|
||||
# specifying a database.
|
||||
def self.generate_app(app_dir)
|
||||
templatedir = File.join(File.expand_path(File.dirname(__FILE__)), 'template-app')
|
||||
templatedir = File.join(File.expand_path(File.dirname(__FILE__)), 'app-template')
|
||||
FileUtils.cp_r(templatedir, app_dir)
|
||||
end
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ describe CouchRest::FileManager, "pushing an app" do
|
|||
@db.delete! rescue nil
|
||||
@db = @cr.create_db(TESTDB) rescue nil
|
||||
|
||||
@appdir = FIXTURE_PATH + '/couchapp/template-app'
|
||||
@appdir = FIXTURE_PATH + '/generated-app'
|
||||
|
||||
`rm -rf #{@appdir}`
|
||||
`mkdir -p #{@appdir}`
|
||||
|
|
3
spec/fixtures/.gitignore
vendored
3
spec/fixtures/.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
couchapp/*
|
||||
couchapp-test/*
|
||||
couchapp-test/*
|
||||
generated-app
|
Loading…
Reference in a new issue