Browse files

Tests shouldn't produce warnings

  • Loading branch information...
1 parent e865d12 commit fa0ebf4c98da483beb86da4e11f2a73729e3983a @raybaxter raybaxter committed Sep 4, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/test/template/record_tag_helper_test.rb
View
5 actionpack/test/template/record_tag_helper_test.rb
@@ -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

0 comments on commit fa0ebf4

Please sign in to comment.