get test running again for zentest > 4.0.0

also fix other bugs in the tests
This commit is contained in:
Reinier Balt 2009-08-05 20:35:31 +02:00
parent ab9fa1fc46
commit bde079a92b
28 changed files with 65 additions and 73 deletions

View file

@ -1,7 +1,7 @@
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require File.expand_path(File.dirname(__FILE__) + "/../app/controllers/application")
require 'test/rails' #you need the zentest gem installed
require 'autotest/rails' #you need the zentest gem installed
require 'test_help'
require 'flexmock/test_unit' #and the flexmock gem, too!
require 'action_web_service/test_invoke'
@ -41,21 +41,8 @@ class Test::Unit::TestCase
end
class Test::Rails::HelperTestCase
self.use_transactional_fixtures = false
self.use_instantiated_fixtures = false
end
class Test::Rails::TestCase < Test::Unit::TestCase
# Turn off transactional fixtures if you're working with MyISAM tables in MySQL
self.use_transactional_fixtures = true
# Instantiated fixtures are slow, but give you @david where you otherwise would need people(:david)
self.use_instantiated_fixtures = false
class ActiveSupport::TestCase
# Generates a random string of ascii characters (a-z, "1 0")
# of a given length for testing assignment to fields
# for validation purposes
@ -144,4 +131,4 @@ class ActionController::IntegrationTest
assert_response_and_body 401, "401 Unauthorized: Only admin users are allowed access to this function."
end
end
end