Use activerecord translations on admin legislation processes

This commit is contained in:
decabeza
2019-03-05 17:43:39 +01:00
parent c9d0411d47
commit 4a532bf807
6 changed files with 23 additions and 45 deletions

View File

@@ -82,7 +82,7 @@ describe Legislation::Process do
allegations_end_date: Date.current - 1.day)
expect(process).to be_invalid
expect(process.errors.messages[:allegations_end_date])
.to include("must be on or after the allegations start date")
.to include("must be on or after the comments start date")
end
it "is valid if allegations_end_date is the same as allegations_start_date" do