From 7379daad1c73bd3610ed296436250b417ac3673d Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 10 Feb 2011 14:19:00 +0100 Subject: removed thinking_sphinx plugin and replaced it with gem. also tuned dependencies --- vendor/plugins/thinking-sphinx/spec/spec_helper.rb | 56 ---------------------- 1 file changed, 56 deletions(-) delete mode 100644 vendor/plugins/thinking-sphinx/spec/spec_helper.rb (limited to 'vendor/plugins/thinking-sphinx/spec/spec_helper.rb') diff --git a/vendor/plugins/thinking-sphinx/spec/spec_helper.rb b/vendor/plugins/thinking-sphinx/spec/spec_helper.rb deleted file mode 100644 index 6ebce6df..00000000 --- a/vendor/plugins/thinking-sphinx/spec/spec_helper.rb +++ /dev/null @@ -1,56 +0,0 @@ -$:.unshift File.dirname(__FILE__) + '/../lib' - -require 'rubygems' -require 'fileutils' -require 'ginger' - -require 'lib/thinking_sphinx' - -require 'not_a_mock' -require 'will_paginate' - -require 'spec/sphinx_helper' - -ActiveRecord::Base.logger = Logger.new(StringIO.new) - -Spec::Runner.configure do |config| - %w( tmp tmp/config tmp/log tmp/db ).each do |path| - FileUtils.mkdir_p "#{Dir.pwd}/#{path}" - end - - Kernel.const_set :RAILS_ROOT, "#{Dir.pwd}/tmp" unless defined?(RAILS_ROOT) - - sphinx = SphinxHelper.new - sphinx.setup_mysql - - require 'spec/fixtures/models' - - config.before :all do - %w( tmp tmp/config tmp/log tmp/db ).each do |path| - FileUtils.mkdir_p "#{Dir.pwd}/#{path}" - end - - ThinkingSphinx.updates_enabled = true - ThinkingSphinx.deltas_enabled = true - ThinkingSphinx.suppress_delta_output = true - - ThinkingSphinx::Configuration.instance.reset - ThinkingSphinx::Configuration.instance.database_yml_file = "spec/fixtures/sphinx/database.yml" - - # Ensure after_commit plugin is loaded correctly - Object.subclasses_of(ActiveRecord::ConnectionAdapters::AbstractAdapter).each { |klass| - unless klass.ancestors.include?(AfterCommit::ConnectionAdapters) - klass.send(:include, AfterCommit::ConnectionAdapters) - end - } - end - - config.after :each do - NotAMock::CallRecorder.instance.reset - NotAMock::Stubber.instance.reset - end - - config.after :all do - FileUtils.rm_r "#{Dir.pwd}/tmp" rescue nil - end -end -- cgit v1.3