test_help.rb

Path: vendor/rails/railties/lib/test_help.rb
Last Update: Wed Sep 08 00:16:50 +0000 2010

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

[Source]

    # File vendor/rails/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

[Validate]