diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-01-09 17:13:05 +0000 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-11 13:45:08 -0800 |
commit | 3b797c8c8681c8f4619bce39d3f042244fe002d9 (patch) | |
tree | 9e9e9e6f574604345969ec1118a0f99977fcf3b1 /activerecord/test/cases | |
parent | 4754018272d576590693e5418936db23c7d13172 (diff) | |
download | rails-3b797c8c8681c8f4619bce39d3f042244fe002d9.tar.gz rails-3b797c8c8681c8f4619bce39d3f042244fe002d9.tar.bz2 rails-3b797c8c8681c8f4619bce39d3f042244fe002d9.zip |
DRY up the code which instantiates the association proxy
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/validations/uniqueness_validation_test.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/activerecord/test/cases/validations/uniqueness_validation_test.rb b/activerecord/test/cases/validations/uniqueness_validation_test.rb index 679d67553b..b4f3dd034c 100644 --- a/activerecord/test/cases/validations/uniqueness_validation_test.rb +++ b/activerecord/test/cases/validations/uniqueness_validation_test.rb @@ -6,19 +6,6 @@ require 'models/warehouse_thing' require 'models/guid' require 'models/event' -# The following methods in Topic are used in test_conditional_validation_* -class Topic - has_many :unique_replies, :dependent => :destroy, :foreign_key => "parent_id" - has_many :silly_unique_replies, :dependent => :destroy, :foreign_key => "parent_id" -end - -class UniqueReply < Reply - validates_uniqueness_of :content, :scope => 'parent_id' -end - -class SillyUniqueReply < UniqueReply -end - class Wizard < ActiveRecord::Base self.abstract_class = true |