Add proposal translations
Adapt retire form to include needed translations and move validations from controller to model. Also change sanitizable concern to sanitize not marked for destruction translations.
This commit is contained in:
committed by
voodoorai2000
parent
5343448c5a
commit
02be0c61f9
@@ -146,7 +146,9 @@ describe ProposalNotification do
|
||||
it "returns false if the resource is retired" do
|
||||
notification = create(:notification, notifiable: notifiable)
|
||||
|
||||
notifiable.proposal.update(retired_at: Time.current)
|
||||
notifiable.proposal.update(retired_at: Time.current,
|
||||
retired_explanation: "Unfeasible reason explanation",
|
||||
retired_reason: "unfeasible")
|
||||
expect(notification.check_availability(proposal)).to be(false)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user