spec: move one level up
This commit is contained in:
parent
80f0497a37
commit
a26a662df4
1 changed files with 251 additions and 250 deletions
|
@ -259,11 +259,13 @@ describe ProcedureRevision do
|
||||||
expect(child.parent_id).to eq(parent.id)
|
expect(child.parent_id).to eq(parent.id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe '#compare' do
|
describe '#compare' do
|
||||||
let(:procedure) { create(:procedure, :with_type_de_champ, :with_type_de_champ_private, :with_repetition) }
|
let(:procedure) { create(:procedure, :with_type_de_champ, :with_type_de_champ_private, :with_repetition) }
|
||||||
let(:type_de_champ_first) { draft.types_de_champ_public.first }
|
let(:type_de_champ_first) { draft.types_de_champ_public.first }
|
||||||
let(:type_de_champ_second) { draft.types_de_champ_public.second }
|
let(:type_de_champ_second) { draft.types_de_champ_public.second }
|
||||||
|
let(:new_draft) { procedure.create_new_revision }
|
||||||
|
|
||||||
it 'type_de_champ' do
|
it 'type_de_champ' do
|
||||||
expect(new_draft.types_de_champ_public.size).to eq(2)
|
expect(new_draft.types_de_champ_public.size).to eq(2)
|
||||||
|
@ -518,7 +520,6 @@ describe ProcedureRevision do
|
||||||
])
|
])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
describe 'children_of' do
|
describe 'children_of' do
|
||||||
context 'with a simple tdc' do
|
context 'with a simple tdc' do
|
||||||
|
|
Loading…
Add table
Reference in a new issue