Enable the Layout/ExtraSpacing cop

This commit is contained in:
gregoirenovel 2017-06-12 16:12:03 +02:00
parent f1d66e40c3
commit d248afc376
19 changed files with 34 additions and 31 deletions

View file

@ -43,7 +43,7 @@ describe 'admin/types_de_champ/show.html.haml', type: :view do
let!(:type_de_champ_1) { create(:type_de_champ_public, procedure: procedure, order_place: 1) }
it { expect(subject).to have_css('#btn_down_0') }
it { expect(subject).to have_css('#btn_up_0[style*="visibility: hidden"]') }
it { expect(subject).to have_css('#btn_up_1') }
it { expect(subject).to have_css('#btn_up_1') }
it { expect(subject).to have_css('#btn_down_1[style*="visibility: hidden"]') }
end
end

View file

@ -51,7 +51,7 @@ describe 'admin/types_de_champ/show.html.haml', type: :view do
let!(:type_de_champ_1) { create(:type_de_champ_private, procedure: procedure, order_place: 1) }
it { expect(subject).to have_css('#btn_down_0') }
it { expect(subject).to have_css('#btn_up_0[style*="visibility: hidden"]') }
it { expect(subject).to have_css('#btn_up_1') }
it { expect(subject).to have_css('#btn_up_1') }
it { expect(subject).to have_css('#btn_down_1[style*="visibility: hidden"]') }
end
end

View file

@ -41,7 +41,7 @@ describe 'admin/pieces_justificatives/show.html.haml', type: :view do
let!(:type_de_piece_justificative_1) { create(:type_de_piece_justificative, procedure: procedure, order_place: 1) }
it { expect(subject).to have_css('#btn_down_0') }
it { expect(subject).not_to have_css('#btn_up_0') }
it { expect(subject).to have_css('#btn_up_1') }
it { expect(subject).to have_css('#btn_up_1') }
it { expect(subject).not_to have_css('#btn_down_1') }
end
end