aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-07-21 13:00:56 +0200
committerJosé Valim <jose.valim@gmail.com>2010-07-21 13:00:56 +0200
commit53310614d7ef279e3b2d5b02e4468e3e3f25e0cd (patch)
tree73c16b6738875b865d473a19f762238382645cb3 /activemodel/test/models
parent508fba9e070e09f0a321f2dd7acf7938967468f7 (diff)
downloadrails-53310614d7ef279e3b2d5b02e4468e3e3f25e0cd.tar.gz
rails-53310614d7ef279e3b2d5b02e4468e3e3f25e0cd.tar.bz2
rails-53310614d7ef279e3b2d5b02e4468e3e3f25e0cd.zip
Reuse already existing classes for ActiveModel tests.
Diffstat (limited to 'activemodel/test/models')
-rw-r--r--activemodel/test/models/contact.rb1
-rw-r--r--activemodel/test/models/sheep.rb4
2 files changed, 5 insertions, 0 deletions
diff --git a/activemodel/test/models/contact.rb b/activemodel/test/models/contact.rb
index 605e435f39..f4f3078473 100644
--- a/activemodel/test/models/contact.rb
+++ b/activemodel/test/models/contact.rb
@@ -1,4 +1,5 @@
class Contact
+ extend ActiveModel::Naming
include ActiveModel::Conversion
attr_accessor :id, :name, :age, :created_at, :awesome, :preferences
diff --git a/activemodel/test/models/sheep.rb b/activemodel/test/models/sheep.rb
new file mode 100644
index 0000000000..175dbe6477
--- /dev/null
+++ b/activemodel/test/models/sheep.rb
@@ -0,0 +1,4 @@
+class Sheep
+ extend ActiveModel::Naming
+end
+ \ No newline at end of file