Skip to content

Commit

Permalink
Fix "with authenticated user" when user is missing (lol)
Browse files Browse the repository at this point in the history
  • Loading branch information
NuckChorris committed Dec 31, 2024
1 parent e05d858 commit b5c9698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/shared_contexts/with_authenticated_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
RSpec.shared_context 'with authenticated user' do
let(:user) { create(:user) }
let(:token) { token_for(user) }
let(:context) { { token:, user:, site_permissions: user.permissions } }
let(:context) { { token:, user:, site_permissions: user&.permissions } }
end

0 comments on commit b5c9698

Please sign in to comment.