1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

This is also a model

This commit is contained in:
Rafael Mendonça França 2014-05-12 21:03:58 -03:00
parent be6ff39199
commit 392e627b12

View file

@ -360,7 +360,7 @@ module ApplicationTests
test "default method for update can be changed" do
app_file 'app/models/post.rb', <<-RUBY
class Post
extend ActiveModel::Naming
include ActiveModel::Model
def to_key; [1]; end
def persisted?; true; end
end