Enable the Layout/EmptyLinesAroundBlockBody cop

This commit is contained in:
gregoirenovel 2017-06-12 15:58:15 +02:00
parent aac75106ef
commit f1907f4d0e
84 changed files with 1 additions and 133 deletions

View file

@ -1,7 +1,6 @@
require 'spec_helper'
feature 'As a User I want to edit a dossier I own' do
let(:user) { create(:user) }
let(:procedure_for_individual) { create(:procedure, :published, :for_individual, :with_type_de_champ, :with_two_type_de_piece_justificative, :with_dossier_link) }
let!(:dossier) { create(:dossier, :with_entreprise, :for_individual, :with_dossier_link, procedure: procedure_for_individual, user: user, autorisation_donnees: true, state: 'initiated') }
@ -12,7 +11,6 @@ feature 'As a User I want to edit a dossier I own' do
end
context 'After sign_in, I can navigate through dossiers indexes and edit a dossier' do
scenario 'After sign_in, I can see dossiers "à traiter" (default), and other indexes' do
expect(page.find('#a_traiter')['class'] ).to eq('active procedure-list-element')
page.find_by_id('brouillon').click

View file

@ -1,7 +1,6 @@
require 'spec_helper'
feature 'As a User I want to sort and paginate dossiers', js: true do
let(:user) { create(:user) }
let(:procedure_for_individual) { create(:procedure, :published, :for_individual) }
@ -21,7 +20,6 @@ feature 'As a User I want to sort and paginate dossiers', js: true do
end
context 'After sign_in, I can see my 51 dossiers on the index' do
scenario 'Using sort' do
visit "/users/dossiers?dossiers_smart_listing[sort][id]=asc"
expect(page.all(:css, '#dossiers-list tr')[1].text.split(" ").first).to eq(user.dossiers.first.id.to_s)
@ -50,5 +48,4 @@ feature 'As a User I want to sort and paginate dossiers', js: true do
expect(page.all(:css, '#dossiers-list tr')[1].text.split(" ").first).to eq((user.dossiers.first.id).to_s)
end
end
end