spec/factories/activity.rb in social_stream-base-1.1.11 vs spec/factories/activity.rb in social_stream-base-2.0.0.beta1
- old
+ new
@@ -1,12 +1,12 @@
# Helpers for building the post activity
#
class ActivityObjectSpecHelper < ActiveRecord::Base
- set_table_name "activity_objects"
+ self.table_name = "activity_objects"
end
class PostSpecHelper < ActiveRecord::Base
- set_table_name "posts"
+ self.table_name = "posts"
belongs_to :activity_object_spec_helper, :foreign_key => "activity_object_id"
end
Factory.define :activity_object_spec_helper do |a|