Skip to content

Commit 1480f02

Browse files
committed
Since the authentication provider has changed
Since the authentication provider has changed, this change was necessary in order to ensure that the two tests which failed without it, in spec/requests/announcements_spec.rb, continue to pass.
1 parent 10e4a73 commit 1480f02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/requests/announcements_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
).to receive(:require_user!).and_return(true)
1010

1111
allow_any_instance_of(ServicesController).to receive(:services).and_return([])
12-
allow_any_instance_of(PermissionsController).to receive(:current_user).and_return(current_user)
12+
13+
# Mock CognitoHelper which is the source of current_user method
14+
allow_any_instance_of(CognitoHelper).to receive(:current_user).and_return(current_user)
1315
end
1416

1517
describe 'when there are no announcements' do

0 commit comments

Comments
 (0)