mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-12 02:14:22 +01:00
Update has_many_polymorphs to 421dd0bd60b246652bbbafd64724ebf1efa27607
This commit is contained in:
parent
804d59c542
commit
144e74682b
49 changed files with 189 additions and 126 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
0
vendor/plugins/has_many_polymorphs/test/integration/app/public/dispatch.cgi
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/public/dispatch.cgi
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/public/dispatch.fcgi
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/public/dispatch.fcgi
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/public/dispatch.rb
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/public/dispatch.rb
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/about
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/about
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/breakpointer
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/breakpointer
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/console
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/console
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/destroy
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/destroy
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/generate
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/generate
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/performance/benchmarker
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/performance/benchmarker
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/performance/profiler
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/performance/profiler
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/plugin
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/plugin
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/process/inspector
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/process/inspector
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/process/reaper
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/process/reaper
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/process/spawner
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/process/spawner
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/runner
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/runner
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/server
vendored
Normal file → Executable file
0
vendor/plugins/has_many_polymorphs/test/integration/app/script/server
vendored
Normal file → Executable 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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue