aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/record_identifier_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-10-01 18:09:37 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-10-01 18:09:37 -0700
commit3eb7f9adee4f606ac65e8e3d25098411b5a787b7 (patch)
tree45bc1a178f597b6e316b47090e5120d14ee619bb /actionpack/test/controller/record_identifier_test.rb
parent50cf5c11a1b33cd082bbdf4f253581109955797c (diff)
downloadrails-3eb7f9adee4f606ac65e8e3d25098411b5a787b7.tar.gz
rails-3eb7f9adee4f606ac65e8e3d25098411b5a787b7.tar.bz2
rails-3eb7f9adee4f606ac65e8e3d25098411b5a787b7.zip
removing more duplicate code. :'(
Diffstat (limited to 'actionpack/test/controller/record_identifier_test.rb')
-rw-r--r--actionpack/test/controller/record_identifier_test.rb14
1 files changed, 1 insertions, 13 deletions
diff --git a/actionpack/test/controller/record_identifier_test.rb b/actionpack/test/controller/record_identifier_test.rb
index 835a0e970b..e46e317e31 100644
--- a/actionpack/test/controller/record_identifier_test.rb
+++ b/actionpack/test/controller/record_identifier_test.rb
@@ -1,17 +1,5 @@
require 'abstract_unit'
-
-class Comment
- extend ActiveModel::Naming
- include ActiveModel::Conversion
-
- attr_reader :id
- def to_key; id ? [id] : nil end
- def save; @id = 1 end
- def new_record?; @id.nil? end
- def name
- @id.nil? ? 'new comment' : "comment ##{@id}"
- end
-end
+require 'controller/fake_models'
class Sheep
extend ActiveModel::Naming