Skip to content

Commit 4cba05d

Browse files
authored
Merge pull request #2238 from jonodrew/patch-tests
Patch tests
2 parents 77b3215 + fd66c65 commit 4cba05d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/features/member_portal_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
it 'can view attending workshops' do
2222
workshop = Fabricate(:workshop, chapter: Fabricate(:chapter_with_groups))
23-
subscription = Fabricate(:subscription, member: member, group: workshop.chapter.groups.first)
24-
invitation = Fabricate(:attending_workshop_invitation, member: member,
23+
Fabricate(:subscription, member: member, group: workshop.chapter.groups.first)
24+
Fabricate(:attending_workshop_invitation, member: member,
2525
workshop: workshop)
2626
presenter = WorkshopPresenter.new(workshop)
2727
visit dashboard_path
@@ -92,6 +92,7 @@
9292
end
9393

9494
it 'is redirected to sign_in page when they attempt not access the profile page' do
95+
mock_github_auth
9596
visit profile_path
9697

9798
expect(page).to_not have_selector('#member_profile')

0 commit comments

Comments
 (0)