diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-28 16:40:28 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-28 16:40:28 -0300 |
commit | c8db1adc0d33228882d8d35d706a3744f7c3d958 (patch) | |
tree | f1a1e57f11cf9e93fed250ec2f1780c9a53246ad /actionpack | |
parent | 4d6e178f888c8287eb59e14bd9ecb77b4d71455b (diff) | |
download | rails-c8db1adc0d33228882d8d35d706a3744f7c3d958.tar.gz rails-c8db1adc0d33228882d8d35d706a3744f7c3d958.tar.bz2 rails-c8db1adc0d33228882d8d35d706a3744f7c3d958.zip |
Remove duplicated class test. copy/paste fail?
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/activerecord/render_partial_with_record_identification_test.rb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb index df50c3dc6f..43c534c111 100644 --- a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb +++ b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb @@ -93,38 +93,6 @@ class RenderPartialWithRecordIdentificationTest < ActiveRecordTestCase end end -class RenderPartialWithRecordIdentificationController < ActionController::Base - def render_with_has_many_and_belongs_to_association - @developer = Developer.find(1) - render :partial => @developer.projects - end - - def render_with_has_many_association - @topic = Topic.find(1) - render :partial => @topic.replies - end - - def render_with_has_many_through_association - @developer = Developer.find(:first) - render :partial => @developer.topics - end - - def render_with_belongs_to_association - @reply = Reply.find(1) - render :partial => @reply.topic - end - - def render_with_record - @developer = Developer.find(:first) - render :partial => @developer - end - - def render_with_record_collection - @developers = Developer.find(:all) - render :partial => @developers - end -end - class Game < Struct.new(:name, :id) extend ActiveModel::Naming include ActiveModel::Conversion |