From 53310614d7ef279e3b2d5b02e4468e3e3f25e0cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 21 Jul 2010 13:00:56 +0200 Subject: Reuse already existing classes for ActiveModel tests. --- activemodel/test/models/contact.rb | 1 + activemodel/test/models/sheep.rb | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 activemodel/test/models/sheep.rb (limited to 'activemodel/test/models') 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 -- cgit v1.2.3