From 2e5445da3ee83f06e33ea006e7db21bdd3e98466 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 19 May 2019 15:46:42 +1200 Subject: [PATCH] Create some activity on the member's page --- spec/features/percy/percy_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/features/percy/percy_spec.rb b/spec/features/percy/percy_spec.rb index e6b1f8fab..c86afd20a 100644 --- a/spec/features/percy/percy_spec.rb +++ b/spec/features/percy/percy_spec.rb @@ -125,6 +125,11 @@ I noticed a couple of days ago on the way to work that there's a place near home end it 'loads another members#show' do + Factory.create :planting, author: someone_else, created_at: 30.days.ago, crop: tomato + Factory.create :planting, author: someone_else, created_at: 24.days.ago, crop: tomato + Factory.create :post, author: someone_else, created_at: 4.days.ago, subject: 'waiting for my tomatoes' + Factory.create :harvest, author: someone_else, created_at: 1.day.ago, crop: tomato + visit member_path(someone_else) Percy.snapshot(page, name: "#{prefix}/members#show") end