Tests shouldn't produce warnings

This commit is contained in:
Ray Baxter
2011-09-04 13:11:54 -07:00
parent e865d12543
commit fa0ebf4c98

View File

@@ -5,6 +5,11 @@ class Post
extend ActiveModel::Naming
include ActiveModel::Conversion
attr_writer :id, :body
def initialize
@id = nil
@body = nil
super
end
def id
@id || 45
end