diff --git a/spec/acceptance/activities_spec.rb b/spec/acceptance/activities_spec.rb index cb9193f80a09a2118c2620718ff2ed5795c8585b..d20694caab25dde3fd8206e6b51f7dc58214b9bc 100644 --- a/spec/acceptance/activities_spec.rb +++ b/spec/acceptance/activities_spec.rb @@ -40,9 +40,10 @@ resource 'Activities' do include_context "authenticate_user" let(:id) { users.first.id } - + before do create(:follow, followable: users.first, user: @user) + create(:like, user: users.first) end example 'Showing activities from a specific user' do @@ -56,7 +57,8 @@ resource 'Activities' do include_context "authenticate_user" before do - create(:like, user: @user) + create(:follow, followable: users.first, user: @user) + create(:like, user: users.first) end example 'Showing all activities that logged user can see' do