spec/tekeya/activity_spec.rb in tekeya-0.0.9 vs spec/tekeya/activity_spec.rb in tekeya-0.0.10
- old
+ new
@@ -13,12 +13,12 @@
# Normal Activities (1 & 2 should be grouped)
@act1 = @user.activities.liked Fabricate(:status), Fabricate(:status)
@act2 = @user.activities.liked Fabricate(:status)
@act3 = @user.activities.shared Fabricate(:status)
- # Created after the grouping interval
+ # Created before the grouping interval
@act4 = @user.activities.new activity_type: :liked, attachments: [Fabricate.build(:attachment)]
- @act4.stub(:current_time_from_proper_timezone => @act1.created_at + 20.minutes)
+ @act4.stub(:current_time_from_proper_timezone => @act1.created_at - 20.minutes)
@act4.save!
# Manually not grouped
@act5 = @user.activities.liked Fabricate(:status), group: false
end