Skip to content

Commit 00356fd

Browse files
committed
Test reporting as learner
1 parent 92a6a7f commit 00356fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/system/report_request_for_comments_system_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
require 'rails_helper'
44

55
RSpec.describe 'Report RfCs for unapprporiat content' do
6-
let(:user) { create(:teacher) }
6+
let(:user) { create(:learner) }
77

88
before do
99
stub_const('RequestForCommentPolicy::REPORT_RECEIVER_CONFIGURED', reports_enabled)
1010
visit(sign_in_path)
1111
fill_in('email', with: user.email)
12-
fill_in('password', with: attributes_for(:teacher)[:password])
12+
fill_in('password', with: attributes_for(:learner)[:password])
1313
click_button(I18n.t('sessions.new.link'))
1414
visit(request_for_comment_path(create(:rfc)))
1515
end

0 commit comments

Comments
 (0)