Spec STI loading champ/type de champ

This commit is contained in:
Paul Chavard 2018-02-14 15:12:57 +01:00
parent a9f078265a
commit 9cc6d494a4
19 changed files with 126 additions and 79 deletions

View file

@ -33,7 +33,7 @@ shared_examples 'champ_spec' do
end
context "when type_champ=date" do
let(:type_de_champ) { create(:type_de_champ, type_champ: "date") }
let(:type_de_champ) { create(:type_de_champ_date) }
let(:champ) { type_de_champ.champ.create }
it "should convert %d/%m/%Y format to ISO" do