File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 44 report_content :
55 authentication : Kurs-URL für die LTI-Authentifizierung.
66 prolog : ' Die folgenden Inhalte wurden als unangemessen gemeldet:'
7- subject : ' Spam Report: Ein %{human_model_name} in CodeOcean wurde als unangemessen markiert.'
7+ subject : ' Content Report: Ein %{human_model_name} in CodeOcean wurde als unangemessen markiert.'
88 take_action : Bitte ergreifen Sie gegebenenfalls Maßnahmen.
Original file line number Diff line number Diff line change 44 report_content :
55 authentication : Course URL for LTI authentication.
66 prolog : ' The following content has been reported as inappropriate:'
7- subject : ' Spam Report: A %{human_model_name} on CodeOcean has been marked as inappropriate.'
7+ subject : ' Content Report: A %{human_model_name} on CodeOcean has been marked as inappropriate.'
88 take_action : Please take action if required.
Original file line number Diff line number Diff line change 33class UserContentReport
44 def initialize ( reported_content :)
55 unless [ Comment , RequestForComment ] . include? ( reported_content . class )
6- raise ( "#{ reported_content . model_name } is not configured for spam reports." )
6+ raise ( "#{ reported_content . model_name } is not configured for content reports." )
77 end
88
99 @reported_content = reported_content
Original file line number Diff line number Diff line change 6262 end
6363
6464 it 'raise an error if an unsupported model is reported' do
65- expect { described_class . new ( reported_content : Exercise . new ) } . to raise_error ( 'Exercise is not configured for spam reports.' )
65+ expect { described_class . new ( reported_content : Exercise . new ) } . to raise_error ( 'Exercise is not configured for content reports.' )
6666 end
6767end
You can’t perform that action at this time.
0 commit comments