Update has_many_polymorphs to 421dd0bd60b246652bbbafd64724ebf1efa27607

This commit is contained in:
Eric Allen 2009-12-07 18:20:17 -05:00
parent 804d59c542
commit 144e74682b
49 changed files with 189 additions and 126 deletions

View file

@ -0,0 +1,7 @@
# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
# Pick a unique cookie name to distinguish our session data from others'
session :session_key => '_testapp_session_id'
end

View file

@ -3,6 +3,7 @@ config.cache_classes = ENV['PRODUCTION']
config.whiny_nils = true
config.action_controller.consider_all_requests_local = !ENV['PRODUCTION']
config.action_controller.perform_caching = ENV['PRODUCTION']
config.action_view.cache_template_extensions = ENV['PRODUCTION']
# The following has been deprecated in Rails 2.1 and removed in 2.2
config.action_view.cache_template_extensions = ENV['PRODUCTION'] if Rails::VERSION::MAJOR < 2 or Rails::VERSION::MAJOR == 2 && Rails::VERSION::MINOR < 1
config.action_view.debug_rjs = !ENV['PRODUCTION']
config.action_mailer.raise_delivery_errors = false

View file

@ -1,7 +1,7 @@
require File.dirname(__FILE__) + '/../test_helper'
require 'fileutils'
class CommentingGeneratorTest < Test::Unit::TestCase
class CommentingGeneratorTest < ActiveSupport::TestCase
def test_ensure_comments_dont_exist
# make sure the comments are already defined

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

@ -4,7 +4,7 @@ require 'addresses_controller'
# Re-raise errors caught by the controller.
class AddressesController; def rescue_action(e) raise e end; end
class AddressesControllerTest < Test::Unit::TestCase
class AddressesControllerTest < ActiveSupport::TestCase
fixtures :addresses
def setup

View file

@ -4,7 +4,7 @@ require 'sellers_controller'
# Re-raise errors caught by the controller.
class SellersController; def rescue_action(e) raise e end; end
class SellersControllerTest < Test::Unit::TestCase
class SellersControllerTest < ActiveSupport::TestCase
fixtures :sellers
def setup

View file

@ -4,7 +4,7 @@ require 'states_controller'
# Re-raise errors caught by the controller.
class StatesController; def rescue_action(e) raise e end; end
class StatesControllerTest < Test::Unit::TestCase
class StatesControllerTest < ActiveSupport::TestCase
fixtures :states
def setup

View file

@ -4,7 +4,7 @@ require 'users_controller'
# Re-raise errors caught by the controller.
class UsersController; def rescue_action(e) raise e end; end
class UsersControllerTest < Test::Unit::TestCase
class UsersControllerTest < ActiveSupport::TestCase
fixtures :users
def setup

View file

@ -2,7 +2,7 @@ ENV["RAILS_ENV"] = "development"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'
class Test::Unit::TestCase
class ActiveSupport::TestCase
self.use_transactional_fixtures = true
self.use_instantiated_fixtures = false
end

View file

@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/../test_helper'
class BoneTest < Test::Unit::TestCase
class BoneTest < ActiveSupport::TestCase
# Replace this with your real tests.
def test_truth
assert true

View file

@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/../test_helper'
class DoubleStiParentRelationshipTest < Test::Unit::TestCase
class DoubleStiParentRelationshipTest < ActiveSupport::TestCase
# Replace this with your real tests.
def test_truth
assert true

View file

@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/../test_helper'
class DoubleStiParentTest < Test::Unit::TestCase
class DoubleStiParentTest < ActiveSupport::TestCase
# Replace this with your real tests.
def test_truth
assert true

View file

@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/../test_helper'
class OrganicSubstanceTest < Test::Unit::TestCase
class OrganicSubstanceTest < ActiveSupport::TestCase
# Replace this with your real tests.
def test_truth
assert true

View file

@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/../test_helper'
class SingleStiParentRelationshipTest < Test::Unit::TestCase
class SingleStiParentRelationshipTest < ActiveSupport::TestCase
# Replace this with your real tests.
def test_truth
assert true

View file

@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/../test_helper'
class SingleStiParentTest < Test::Unit::TestCase
class SingleStiParentTest < ActiveSupport::TestCase
# Replace this with your real tests.
def test_truth
assert true

View file

@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/../test_helper'
class StickTest < Test::Unit::TestCase
class StickTest < ActiveSupport::TestCase
# Replace this with your real tests.
def test_truth
assert true

View file

@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/../test_helper'
class StoneTest < Test::Unit::TestCase
class StoneTest < ActiveSupport::TestCase
# Replace this with your real tests.
def test_truth
assert true

View file

@ -4,7 +4,7 @@ require 'open-uri'
# Start the server
class ServerTest < Test::Unit::TestCase
class ServerTest < ActiveSupport::TestCase
PORT = 43040
URL = "http://localhost:#{PORT}/"
@ -40,4 +40,4 @@ class ServerTest < Test::Unit::TestCase
# XXX Probably can use script/runner to test this
end
end
end