Class: ActiveRecordTestConnector
- Inherits:
-
Object
- Object
- ActiveRecordTestConnector
- Defined in:
- vendor/plugins/classic_pagination/test/helper.rb
Overview
Define the connector
Class Method Summary
Class Method Details
+ (Object) setup
42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'vendor/plugins/classic_pagination/test/helper.rb', line 42 def setup unless self.connected || !self.able_to_connect setup_connection load_schema require_fixture_models self.connected = true end rescue Exception => e # errors from ActiveRecord setup $stderr.puts "\nSkipping ActiveRecord assertion tests: #{e}" #$stderr.puts " #{e.backtrace.join("\n ")}\n" self.able_to_connect = false end |