aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/form_helper_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-07-21 00:51:57 -0500
committerJoshua Peek <josh@joshpeek.com>2009-07-21 00:51:57 -0500
commit92c00d75869b173f44ff9d68f219a99e6dc3bd82 (patch)
treea5c11b3810d7739de8dcac6cedaa2879810de4a8 /actionpack/test/template/form_helper_test.rb
parent6944b391cddbf1a3ffb3ac4ac588fa4b3d50f430 (diff)
downloadrails-92c00d75869b173f44ff9d68f219a99e6dc3bd82.tar.gz
rails-92c00d75869b173f44ff9d68f219a99e6dc3bd82.tar.bz2
rails-92c00d75869b173f44ff9d68f219a99e6dc3bd82.zip
AMo conversion helper
Diffstat (limited to 'actionpack/test/template/form_helper_test.rb')
-rw-r--r--actionpack/test/template/form_helper_test.rb15
1 files changed, 10 insertions, 5 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index 883afd985b..99160dd8b1 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -2,7 +2,8 @@ require 'abstract_unit'
silence_warnings do
class Post < Struct.new(:title, :author_name, :body, :secret, :written_on, :cost)
- extend ActiveModel::APICompliant
+ extend ActiveModel::Naming
+ include ActiveModel::Conversion
alias_method :secret?, :secret
@@ -25,7 +26,8 @@ silence_warnings do
end
class Comment
- extend ActiveModel::APICompliant
+ extend ActiveModel::Naming
+ include ActiveModel::Conversion
attr_reader :id
attr_reader :post_id
@@ -43,7 +45,8 @@ silence_warnings do
end
class Tag
- extend ActiveModel::APICompliant
+ extend ActiveModel::Naming
+ include ActiveModel::Conversion
attr_reader :id
attr_reader :post_id
@@ -61,7 +64,8 @@ silence_warnings do
end
class CommentRelevance
- extend ActiveModel::APICompliant
+ extend ActiveModel::Naming
+ include ActiveModel::Conversion
attr_reader :id
attr_reader :comment_id
@@ -75,7 +79,8 @@ silence_warnings do
end
class TagRelevance
- extend ActiveModel::APICompliant
+ extend ActiveModel::Naming
+ include ActiveModel::Conversion
attr_reader :id
attr_reader :tag_id