Add webpacker and use it for new_design
This commit is contained in:
parent
f13056437c
commit
bf7c023380
68 changed files with 8534 additions and 480 deletions
|
@ -13,7 +13,7 @@ describe 'new_gestionnaire/dossiers/_map.html.haml', type: :view do
|
|||
|
||||
before { subject }
|
||||
|
||||
it { expect(rendered).to have_content('var dossierJsonLatLngs = [[{"lat":50.659255436656736,"lng":3.080635070800781},{"lat":50.659255436656736,"lng":3.079690933227539},{"lat":50.659962770886516,"lng":3.0800342559814453},{"lat":50.659962770886516,"lng":3.0811500549316406},{"lat":50.659255436656736,"lng":3.080635070800781}]];') }
|
||||
it { expect(rendered).to have_content('dossierJsonLatLngs: [[{"lat":50.659255436656736,"lng":3.080635070800781},{"lat":50.659255436656736,"lng":3.079690933227539},{"lat":50.659962770886516,"lng":3.0800342559814453},{"lat":50.659962770886516,"lng":3.0811500549316406},{"lat":50.659255436656736,"lng":3.080635070800781}]],') }
|
||||
end
|
||||
|
||||
context 'without a correct json' do
|
||||
|
@ -21,7 +21,7 @@ describe 'new_gestionnaire/dossiers/_map.html.haml', type: :view do
|
|||
|
||||
before { subject }
|
||||
|
||||
it { expect(rendered).to have_content('var dossierJsonLatLngs = {};') }
|
||||
it { expect(rendered).to have_content('dossierJsonLatLngs: {},') }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue