Make double-sure the RAILS_ENV is set to test, so fixtures are loaded to the right database
Required Files
- test/unit
- action_controller/test_case
- action_view/test_case
- action_controller/integration
- action_mailer/test_case
- active_record/test_case
- active_record/fixtures
Methods
Constants
RAILS_ENV | = | "test" } |
Public Instance methods
[ show source ]
# File railties/lib/test_help.rb, line 24 24: def create_fixtures(*table_names, &block) 25: Fixtures.create_fixtures(ActiveSupport::TestCase.fixture_path, table_names, {}, &block) 26: end