Use enum to the fullest with TypeDeChamp.type_champs
This commit is contained in:
parent
16a719922b
commit
2d3b553e4d
21 changed files with 94 additions and 94 deletions
|
@ -2,7 +2,7 @@ require 'rails_helper'
|
|||
|
||||
RSpec.describe TypeDeChampHelper, type: :helper do
|
||||
describe ".tdc_options" do
|
||||
let(:pj_option) { ["Pièce justificative", "piece_justificative"] }
|
||||
let(:pj_option) { ["Pièce justificative", TypeDeChamp.type_champs.fetch(:piece_justificative)] }
|
||||
|
||||
subject { tdc_options }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue