spec/support/database.rb in pg_search-1.0.5 vs spec/support/database.rb in pg_search-1.0.6

- old
+ new

@@ -28,11 +28,11 @@ puts "Unable to connect to database. Please run:" puts puts " createdb pg_search_test" puts "-" * 80 end - raise $! + raise $ERROR_INFO end if ENV["LOGGER"] require "logger" ActiveRecord::Base.logger = Logger.new(STDOUT) @@ -48,10 +48,10 @@ if postgresql_version >= 90100 ActiveRecord::Base.connection.execute "CREATE EXTENSION #{name};" else share_path = `pg_config --sharedir`.strip ActiveRecord::Base.connection.execute File.read(File.join(share_path, 'contrib', "#{name}.sql")) - puts $!.message + puts $ERROR_INFO.message end rescue => exception at_exit do puts "-" * 80 puts "Please install the #{name} contrib module"