diff options
author | Rémy Coutable <remy@rymai.me> | 2017-08-09 11:52:22 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-08-09 11:52:22 +0200 |
commit | c946ee1282655d332da4ba99c448d6f68cf87cee (patch) | |
tree | 907120caba60c704f7f7ef623825c54933dc72e2 /spec/features/password_reset_spec.rb | |
parent | 932a6e69b882334dd7e8fdf158ebbab4c620a2b5 (diff) | |
download | gitlab-ce-c946ee1282655d332da4ba99c448d6f68cf87cee.tar.gz |
Enable the Layout/SpaceBeforeBlockBraces coprc/enable-the-Layout/SpaceBeforeBlockBraces-cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/features/password_reset_spec.rb')
-rw-r--r-- | spec/features/password_reset_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/password_reset_spec.rb b/spec/features/password_reset_spec.rb index 5e1e7dc078f..b45972b7f6b 100644 --- a/spec/features/password_reset_spec.rb +++ b/spec/features/password_reset_spec.rb @@ -16,7 +16,7 @@ feature 'Password reset' do user.send_reset_password_instructions user.update_attribute(:reset_password_sent_at, 5.minutes.ago) - expect{ forgot_password(user) }.to change{ user.reset_password_sent_at } + expect { forgot_password(user) }.to change { user.reset_password_sent_at } expect(page).to have_content(I18n.t('devise.passwords.send_paranoid_instructions')) expect(current_path).to eq new_user_session_path end @@ -27,7 +27,7 @@ feature 'Password reset' do # Reload because PG handles datetime less precisely than Ruby/Rails user.reload - expect{ forgot_password(user) }.not_to change{ user.reset_password_sent_at } + expect { forgot_password(user) }.not_to change { user.reset_password_sent_at } expect(page).to have_content(I18n.t('devise.passwords.send_paranoid_instructions')) expect(current_path).to eq new_user_session_path end |