Enable the Layout/MultilineHashBraceLayout cop
This commit is contained in:
parent
9d75526460
commit
5077e654f2
3 changed files with 11 additions and 7 deletions
|
@ -134,7 +134,8 @@ Layout/MultilineBlockLayout:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
Layout/MultilineHashBraceLayout:
|
Layout/MultilineHashBraceLayout:
|
||||||
Enabled: false
|
Enabled: true
|
||||||
|
EnforcedStyle: new_line
|
||||||
|
|
||||||
Layout/MultilineMethodCallBraceLayout:
|
Layout/MultilineMethodCallBraceLayout:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
|
@ -18,11 +18,13 @@ describe Gestionnaires::PasswordsController, type: :controller do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "also signs user in" do
|
it "also signs user in" do
|
||||||
put :update, params: {gestionnaire: {
|
put :update, params: {
|
||||||
|
gestionnaire: {
|
||||||
reset_password_token: @token,
|
reset_password_token: @token,
|
||||||
password: "supersecret",
|
password: "supersecret",
|
||||||
password_confirmation: "supersecret"
|
password_confirmation: "supersecret"
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
expect(subject.current_gestionnaire).to eq(gestionnaire)
|
expect(subject.current_gestionnaire).to eq(gestionnaire)
|
||||||
expect(subject.current_user).to eq(user)
|
expect(subject.current_user).to eq(user)
|
||||||
end
|
end
|
||||||
|
|
|
@ -37,7 +37,8 @@ describe FranceConnectService do
|
||||||
birthplace: birthplace,
|
birthplace: birthplace,
|
||||||
gender: gender,
|
gender: gender,
|
||||||
email_france_connect: email,
|
email_france_connect: email,
|
||||||
france_connect_particulier_id: france_connect_particulier_id })
|
france_connect_particulier_id: france_connect_particulier_id
|
||||||
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue