Skip to content

Commit

Permalink
Add paper kind info to review body
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Aug 17, 2023
1 parent 6601dd5 commit 60eae4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/views/shared/review_body.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
**Editor:** <!--editor--><%= editor %><!--end-editor-->
**Reviewers:** <!--reviewers-list--><%= reviewers.join(', ') %><!--end-reviewers-list-->
**Archive:** <!--archive-->Pending<!--end-archive-->
**Paper kind** <!--paper-kind--><%= paper.kind %><!--end-paper-kind-->

## Status

Expand Down
3 changes: 2 additions & 1 deletion spec/models/paper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,11 @@
instance.save(validate: false)
instance
end
let(:kind) { nil }
let(:kind) { "learning module" }
subject { paper.review_body("editor_name", "mickey,mouse") }

it { is_expected.to match /Reviewers:/ }
it { is_expected.to match /<!--paper-kind-->learning module<!--end-paper-kind-->/ }
it { is_expected.to match /\/papers\/#{paper.sha}/ }
it { is_expected.to match /#{paper.repository_url}/ }
end
Expand Down

0 comments on commit 60eae4b

Please sign in to comment.