aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/connection_specification
Commit message (Collapse)AuthorAgeFilesLines
* fixed support for DATABASE_URL for rake db tasksGrace Liu2012-10-291-2/+0
| | | | | | | | | | | | | | | | Backport for #7521 - added tests to confirm establish_connection uses DATABASE_URL and Rails.env correctly even when no arguments are passed in. - updated rake db tasks to support DATABASE_URL, and added tests to confirm correct behavior for these rake tasks. (Removed establish_connection call from some tasks since in those cases the :environment task already made sure the function would be called) - updated Resolver so that when it resolves the database url, it removes hash values with empty strings from the config spec (e.g. to support connection to postgresql when no username is specified). - updated ResolverTest to use current_adapter? to check the type of the current adapter.
* Make Active Record tests pass in isolationRafael Mendonça França2012-10-291-1/+1
| | | | Also remove the feature detecting for Ruby 1.9
* Fix the skip code.Rafael Mendonça França2012-10-281-4/+4
| | | | Checking for the constant doesn't work
* Merge pull request #7593 from veader/patch-1Rafael Mendonça França2012-10-281-0/+8
| | | | | | | Decode attributes pulled from URI.parse Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/connection_adapters/connection_specification.rb
* Merge pull request #6616 from dpassage/fix_resolver_test_sqlite3Carlos Antonio da Silva2012-07-191-0/+3
| | | | Resolver tests fail if mysql adapter not installed
* respond_to? information of AR is not the responsibility of the specAaron Patterson2011-11-291-1/+1
| | | | resolver.
* Fix resolver_test.rb on travis (postgresql isn't setup, so it can't load the ↵Jon Leighton2011-11-291-6/+6
| | | | connection adapter)
* Move connection resoluion logic to it's own testable class.Aaron Patterson2011-11-281-0/+41