aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-12 21:25:54 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-12 21:28:39 -0300
commit890a189bb4a7476a226a9a1d609297eb52262a0a (patch)
tree7e209dba5bdda3c23230601122bc2101da47ff4c /railties/test
parent290b2795c5e7a59cd1a4947d99d9eca4e9d5a4dd (diff)
downloadrails-890a189bb4a7476a226a9a1d609297eb52262a0a.tar.gz
rails-890a189bb4a7476a226a9a1d609297eb52262a0a.tar.bz2
rails-890a189bb4a7476a226a9a1d609297eb52262a0a.zip
Ok. Enough models for today :rage:
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/railties/engine_test.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/railties/test/railties/engine_test.rb b/railties/test/railties/engine_test.rb
index c4b18e9ea5..28e5b2ff1e 100644
--- a/railties/test/railties/engine_test.rb
+++ b/railties/test/railties/engine_test.rb
@@ -592,11 +592,15 @@ YAML
@plugin.write "app/models/bukkits/post.rb", <<-RUBY
module Bukkits
class Post
- extend ActiveModel::Naming
+ include ActiveModel::Model
def to_param
"1"
end
+
+ def persisted?
+ true
+ end
end
end
RUBY
@@ -704,8 +708,7 @@ YAML
@plugin.write "app/models/bukkits/post.rb", <<-RUBY
module Bukkits
class Post
- extend ActiveModel::Naming
- include ActiveModel::Conversion
+ include ActiveModel::Model
attr_accessor :title
def to_param