aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-03-03 15:27:22 +1100
committerHenare Degan <henare.degan@gmail.com>2013-03-03 15:27:22 +1100
commit25af12c61bad339026d49c0ee9001042f7c1e5d7 (patch)
tree51c51aece430734978cc4481ee6493fc671de71b
parent0cd015967ef4b0baa81687044d990d8072dd6ecb (diff)
This is already defined in xapian_index
-rw-r--r--spec/spec_helper.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 3b59d05c5..aec03b4b7 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -96,21 +96,6 @@ Spork.prefork do
rebuild_xapian_index
end
- # Copy the xapian index created in create_fixtures_xapian_index to a temporary
- # copy at the same level and point xapian at the copy
- def get_fixtures_xapian_index()
- # Create a base index for the fixtures if not already created
- $existing_xapian_db ||= create_fixtures_xapian_index
- # Store whatever the xapian db path is originally
- $original_xapian_path ||= ActsAsXapian.db_path
- path_array = $original_xapian_path.split(File::Separator)
- path_array.pop
- temp_path = File.join(path_array, 'test.temp')
- FileUtils.remove_entry_secure(temp_path, force=true)
- FileUtils.cp_r($original_xapian_path, temp_path)
- ActsAsXapian.db_path = temp_path
- end
-
def with_env_tz(new_tz = 'US/Eastern')
old_tz, ENV['TZ'] = ENV['TZ'], new_tz
yield