Skip to content

Commit 8dd5c3c

Browse files
committed
Explicitly create the Omniauth hash
I notice that the test fails in Github with the error ``` undefined method `[]' for nil:NilClass # ./app/controllers/auth_services_controller.rb:48:in `create' # ./spec/features/member_portal_spec.rb:95:in `block (3 levels) in <top (required)>' # ./spec/spec_helper.rb:114:in `block (2 levels) in <top (required)>' ``` I think this is because we don't set the Gihub auth mock. It could be set elsewhere, and that might be why the test is flakey. I've explicitly set it here to try to get the tests working consistently
1 parent 77b3215 commit 8dd5c3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/features/member_portal_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)