Instiki 0.16.3: Rails 2.3.0
Instiki now runs on the Rails 2.3.0 Candidate Release. Among other improvements, this means that it now automagically selects between WEBrick and Mongrel. Just run ./instiki --daemon
This commit is contained in:
parent
43aadecc99
commit
4e14ccc74d
893 changed files with 71965 additions and 28511 deletions
24
vendor/rails/railties/lib/test_help.rb
vendored
24
vendor/rails/railties/lib/test_help.rb
vendored
|
@ -1,21 +1,29 @@
|
|||
require_dependency 'application'
|
||||
|
||||
# Make double-sure the RAILS_ENV is set to test,
|
||||
# so fixtures are loaded to the right database
|
||||
silence_warnings { RAILS_ENV = "test" }
|
||||
|
||||
require 'test/unit'
|
||||
require 'active_support/test_case'
|
||||
require 'active_record/fixtures'
|
||||
require 'action_controller/test_case'
|
||||
require 'action_view/test_case'
|
||||
require 'action_controller/integration'
|
||||
require 'action_mailer/test_case' if defined?(ActionMailer)
|
||||
|
||||
Test::Unit::TestCase.fixture_path = RAILS_ROOT + "/test/fixtures/"
|
||||
ActionController::IntegrationTest.fixture_path = Test::Unit::TestCase.fixture_path
|
||||
if defined?(ActiveRecord)
|
||||
require 'active_record/test_case'
|
||||
require 'active_record/fixtures'
|
||||
|
||||
def create_fixtures(*table_names)
|
||||
Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names)
|
||||
class ActiveSupport::TestCase
|
||||
include ActiveRecord::TestFixtures
|
||||
self.fixture_path = "#{RAILS_ROOT}/test/fixtures/"
|
||||
self.use_instantiated_fixtures = false
|
||||
self.use_transactional_fixtures = true
|
||||
end
|
||||
|
||||
ActionController::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
|
||||
|
||||
def create_fixtures(*table_names, &block)
|
||||
Fixtures.create_fixtures(ActiveSupport::TestCase.fixture_path, table_names, {}, &block)
|
||||
end
|
||||
end
|
||||
|
||||
begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue