From 5d45b8b91b6cec01dfb4673ef4c841e5f3089838 Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Thu, 8 Jan 2009 22:18:06 -0800 Subject: [PATCH] move tmp dir for specs; --- Rakefile | 2 +- spec/.gitignore | 1 + spec/couchrest/helpers/file_manager_spec.rb | 2 +- spec/spec_helper.rb | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 spec/.gitignore diff --git a/Rakefile b/Rakefile index 0df1425..6f9d927 100644 --- a/Rakefile +++ b/Rakefile @@ -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' diff --git a/spec/.gitignore b/spec/.gitignore new file mode 100644 index 0000000..1c2f433 --- /dev/null +++ b/spec/.gitignore @@ -0,0 +1 @@ +tmp \ No newline at end of file diff --git a/spec/couchrest/helpers/file_manager_spec.rb b/spec/couchrest/helpers/file_manager_spec.rb index 4aa2c46..5839322 100644 --- a/spec/couchrest/helpers/file_manager_spec.rb +++ b/spec/couchrest/helpers/file_manager_spec.rb @@ -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}` diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 97fb985..794b21d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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'