From ec4245cfcb47247ab44dfc577055a71e5975d6f2 Mon Sep 17 00:00:00 2001 From: Katrina Owen Date: Fri, 13 Jul 2012 19:24:48 +0200 Subject: Add note about needing mysql superuser for unit tests. --- activerecord/RUNNING_UNIT_TESTS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord') diff --git a/activerecord/RUNNING_UNIT_TESTS b/activerecord/RUNNING_UNIT_TESTS index 2c310e7ac3..1a561335fc 100644 --- a/activerecord/RUNNING_UNIT_TESTS +++ b/activerecord/RUNNING_UNIT_TESTS @@ -3,6 +3,8 @@ Copy test/config.example.yml to test/config.yml and edit as needed. Or just run the tests for the first time, which will do the copy automatically and use the default (sqlite3). +Create a mysql superuser named 'rails' that does not have a password. + You can build postgres and mysql databases using the postgresql:build_databases and mysql:build_databases rake tasks. == Running the tests -- cgit v1.2.3 From 7e5c6863f34304cd858966e86d43690212992704 Mon Sep 17 00:00:00 2001 From: Katrina Owen Date: Fri, 13 Jul 2012 19:44:56 +0200 Subject: Add link to relevant rails guide to Active Record unit test docs. --- activerecord/RUNNING_UNIT_TESTS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activerecord') diff --git a/activerecord/RUNNING_UNIT_TESTS b/activerecord/RUNNING_UNIT_TESTS index 1a561335fc..7f512e06fb 100644 --- a/activerecord/RUNNING_UNIT_TESTS +++ b/activerecord/RUNNING_UNIT_TESTS @@ -1,3 +1,6 @@ +If you don't have the environment set make sure to read +http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#testing-active-record. + == Configure databases Copy test/config.example.yml to test/config.yml and edit as needed. Or just run the tests for -- cgit v1.2.3