Skip to content

Commit 90dbdcf

Browse files
authored
Merge branch 'main' into core-981-style-privacy-policy
2 parents 760dd54 + dd5439b commit 90dbdcf

30 files changed

+11
-1107
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ jobs:
6868
6969
- name: Test
7070
id: test
71-
continue-on-error: true
7271
run: |
7372
bin/rake parallel:create parallel:load_schema parallel:seed --trace
7473
WORKERS=4 bin/rake parallel:spec

app/controllers/admin/users_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ def search
2121
def update
2222
User.transaction do
2323
was_administrator = @user.is_administrator
24+
old_updated_at = @user.updated_at
2425

2526
respond_to do |format|
2627
if change_user_password && add_email_to_user && change_salesforce_contact && update_user
28+
@user.touch if @user.updated_at == old_updated_at
2729
security_log :user_updated_by_admin, user_id: params[:id], username: @user.username,
2830
user_params: request.filtered_parameters['user']
2931

spec/controllers/contact_infos_controller_spec.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,6 @@
6666
expect(EmailAddress.find_by_value(@email.value).verified).to be_falsey
6767
end
6868

69-
# TODO: let's get this on dev and see the 500 - I can't reproduce
70-
xit "returns error if code doesn't match" do
71-
get(:confirm, params: { code: 'abcd' })
72-
#byebug
73-
expect(response.code).to eq('400')
74-
expect(response.body).to have_no_missing_translations
75-
expect(response.body).to have_content(t :"contact_infos.confirm.verification_code_not_found")
76-
expect(EmailAddress.find_by_value(@email.value).verified).to be_falsey
77-
end
78-
7969
it "returns success if code matches" do
8070
get(:confirm, params: { code: @email.confirmation_code })
8171
expect(response).to be_successful

spec/controllers/newflow/educator_signup_controller_spec.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ module Newflow
163163
end
164164
end
165165

166-
describe 'GET #educator_sheerid_form' do
167-
it 'requires a logged in user'
168-
end
169-
170166
describe 'POST #sheerid_webhook' do
171167
let(:handler) { EducatorSignup::SheeridWebhook }
172168

@@ -194,17 +190,5 @@ module Newflow
194190
end
195191
end
196192
end
197-
198-
describe 'GET #educator_profile_form' do
199-
it 'renders'
200-
end
201-
202-
describe 'POST #educator_complete' do
203-
it ''
204-
end
205-
206-
describe 'POST #educator_verify_email_by_pin' do
207-
it ''
208-
end
209193
end
210194
end

spec/controllers/newflow/login_controller_spec.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -118,27 +118,10 @@ module Newflow
118118

119119
context 'when educator is NOT profile complete' do
120120
before { user.update!(is_profile_complete: false) }
121-
122-
it 'saves incomplete educator in the session' do
123-
# expect_any_instance_of(described_class).to receive(:save_incomplete_educator).with(user).once.and_call_original
124-
post('login', params: params)
125-
# expect(assigns(:current_incomplete_educator)).to eq(user)
126-
end
127-
128121
it 'does a redirect' do
129122
post('login', params: params)
130123
expect(response).to have_http_status(:redirect)
131124
end
132-
133-
it 'creates a security log' do
134-
skip 'todo – maybe'
135-
136-
expect {
137-
post('login', params: params)
138-
}.to change {
139-
SecurityLog.where(event_type: :educator_resumed_signup_flow).count
140-
}
141-
end
142125
end
143126
end
144127
end

spec/controllers/newflow/password_management_controller_spec.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ module Newflow
102102
end
103103
end
104104

105-
describe 'POST #create_password' do
106-
it 'creates a password for logged in user'
107-
end
108-
109105
describe 'GET #change_password_form' do
110106
context 'success - when valid token' do
111107
let(:params) do
@@ -130,14 +126,6 @@ module Newflow
130126
get('change_password_form', params: params)
131127
expect(response.status).to eq(200)
132128
end
133-
134-
xit 'creates a security log' do
135-
expect {
136-
get('change_password_form', params: params)
137-
}.to change {
138-
SecurityLog.where(event_type: :help_requested).count
139-
}
140-
end
141129
end
142130

143131
context 'failure - when invalid token' do

spec/controllers/newflow/signup_controller_spec.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ module Newflow
99
end
1010
end
1111

12-
describe 'GET #change_signup_email_form' do
13-
it 'assigns the email instance variable'
14-
end
15-
16-
describe 'GET #verify_email_by_code' do
17-
it ''
18-
end
19-
2012
describe 'GET #signup_done' do
2113
before do
2214
user = FactoryBot.create(:user)

spec/controllers/newflow/student_signup_controller_spec.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,5 @@ module Newflow
160160
expect(response.status).to eq(302)
161161
end
162162
end
163-
164-
describe 'POST #student_verify_email_by_pin' do
165-
it ''
166-
end
167163
end
168164
end

spec/features/admin/create_banners_spec.rb

Lines changed: 0 additions & 31 deletions
This file was deleted.

spec/features/admin/reports_spec.rb

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)