move tmp dir for specs;

This commit is contained in:
Chris Anderson 2009-01-08 22:18:06 -08:00
parent 3c789ab317
commit 5d45b8b91b
4 changed files with 4 additions and 2 deletions

View file

@ -15,7 +15,7 @@ spec = Gem::Specification.new do |s|
s.authors = ["J. Chris Anderson"]
s.files = %w( LICENSE README.rdoc Rakefile THANKS ) +
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.require_path = "lib"
s.bindir = 'bin'

1
spec/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
tmp

View file

@ -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 + '/generated-app'
@appdir = SCRATCH_PATH + '/generated-app'
`rm -rf #{@appdir}`
`mkdir -p #{@appdir}`

View file

@ -4,6 +4,7 @@ require "spec" # Satisfies Autotest and anyone else not using the Rake tasks
require File.dirname(__FILE__) + '/../lib/couchrest'
FIXTURE_PATH = File.dirname(__FILE__) + '/fixtures'
SCRATCH_PATH = File.dirname(__FILE__) + '/tmp'
COUCHHOST = "http://127.0.0.1:5984"
TESTDB = 'couchrest-test'