spec/mocks/comment.rb in outoftime-sunspot-0.8.2 vs spec/mocks/comment.rb in outoftime-sunspot-0.8.3

- old
+ new

@@ -1,10 +1,10 @@ class Comment < BaseClass @@id = 0 @@comments = [nil] attr_reader :id - attr_accessor :author_name, :published_at, :body + attr_accessor :author_name, :published_at, :body, :average_rating def initialize(attrs = {}) @id = @@id += 1 @@comments << self attrs.each_pair { |attribute, value| self.send("#{attribute}=", value) }