move tmp dir for specs;
This commit is contained in:
parent
3c789ab317
commit
5d45b8b91b
2
Rakefile
2
Rakefile
|
@ -15,7 +15,7 @@ spec = Gem::Specification.new do |s|
|
||||||
s.authors = ["J. Chris Anderson"]
|
s.authors = ["J. Chris Anderson"]
|
||||||
s.files = %w( LICENSE README.rdoc Rakefile THANKS ) +
|
s.files = %w( LICENSE README.rdoc Rakefile THANKS ) +
|
||||||
Dir["{bin,examples,lib,spec,utils}/**/*"] -
|
Dir["{bin,examples,lib,spec,utils}/**/*"] -
|
||||||
Dir["spec/fixtures/couchapp*/**/*"] - Dir["spec/fixtures/couchapp*"]
|
Dir["spec/tmp"]
|
||||||
s.extra_rdoc_files = %w( README.rdoc LICENSE THANKS )
|
s.extra_rdoc_files = %w( README.rdoc LICENSE THANKS )
|
||||||
s.require_path = "lib"
|
s.require_path = "lib"
|
||||||
s.bindir = 'bin'
|
s.bindir = 'bin'
|
||||||
|
|
1
spec/.gitignore
vendored
Normal file
1
spec/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
tmp
|
|
@ -63,7 +63,7 @@ describe CouchRest::FileManager, "pushing an app" do
|
||||||
@db.delete! rescue nil
|
@db.delete! rescue nil
|
||||||
@db = @cr.create_db(TESTDB) rescue nil
|
@db = @cr.create_db(TESTDB) rescue nil
|
||||||
|
|
||||||
@appdir = FIXTURE_PATH + '/generated-app'
|
@appdir = SCRATCH_PATH + '/generated-app'
|
||||||
|
|
||||||
`rm -rf #{@appdir}`
|
`rm -rf #{@appdir}`
|
||||||
`mkdir -p #{@appdir}`
|
`mkdir -p #{@appdir}`
|
||||||
|
|
|
@ -4,6 +4,7 @@ require "spec" # Satisfies Autotest and anyone else not using the Rake tasks
|
||||||
require File.dirname(__FILE__) + '/../lib/couchrest'
|
require File.dirname(__FILE__) + '/../lib/couchrest'
|
||||||
|
|
||||||
FIXTURE_PATH = File.dirname(__FILE__) + '/fixtures'
|
FIXTURE_PATH = File.dirname(__FILE__) + '/fixtures'
|
||||||
|
SCRATCH_PATH = File.dirname(__FILE__) + '/tmp'
|
||||||
|
|
||||||
COUCHHOST = "http://127.0.0.1:5984"
|
COUCHHOST = "http://127.0.0.1:5984"
|
||||||
TESTDB = 'couchrest-test'
|
TESTDB = 'couchrest-test'
|
||||||
|
|
Loading…
Reference in a new issue