spec/spec_helper.rb in adamsalter-sunspot_rails-0.10.4 vs spec/spec_helper.rb in adamsalter-sunspot_rails-0.10.5

- old
+ new

@@ -3,15 +3,17 @@ require File.expand_path(File.join(ENV['RAILS_ROOT'], 'config', 'environment.rb')) require 'spec' require 'spec/rails' -require 'ruby-debug' unless RUBY_VERSION =~ /1.9/ +require 'rake' +require 'ruby-debug' unless RUBY_VERSION > '1.9' +require 'sunspot/rails/tasks' def load_schema stdout = $stdout $stdout = StringIO.new # suppress output while building the schema - load File.join(File.dirname(__FILE__), 'schema.rb') + load File.join(ENV['RAILS_ROOT'], 'db', 'schema.rb') $stdout = stdout end def silence_stderr(&block) stderr = $stderr