Enable the Layout/MultilineHashBraceLayout cop

This commit is contained in:
gregoirenovel 2018-01-15 19:24:05 +01:00
parent 9d75526460
commit 5077e654f2
3 changed files with 11 additions and 7 deletions

View file

@ -134,7 +134,8 @@ Layout/MultilineBlockLayout:
Enabled: true
Layout/MultilineHashBraceLayout:
Enabled: false
Enabled: true
EnforcedStyle: new_line
Layout/MultilineMethodCallBraceLayout:
Enabled: false

View file

@ -18,11 +18,13 @@ describe Gestionnaires::PasswordsController, type: :controller do
end
it "also signs user in" do
put :update, params: {gestionnaire: {
put :update, params: {
gestionnaire: {
reset_password_token: @token,
password: "supersecret",
password_confirmation: "supersecret"
}}
}
}
expect(subject.current_gestionnaire).to eq(gestionnaire)
expect(subject.current_user).to eq(user)
end

View file

@ -37,7 +37,8 @@ describe FranceConnectService do
birthplace: birthplace,
gender: gender,
email_france_connect: email,
france_connect_particulier_id: france_connect_particulier_id })
france_connect_particulier_id: france_connect_particulier_id
})
end
end
end