From d6d7aa0b9baf5dcc5b77c859840af1b2f0caf2da Mon Sep 17 00:00:00 2001 From: yoshihara Date: Wed, 8 Apr 2015 18:41:53 +0900 Subject: [PATCH] Use buton value instead of type to nallow target --- spec/features/users_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/users_spec.rb b/spec/features/users_spec.rb index a4ee4e1..19448e0 100644 --- a/spec/features/users_spec.rb +++ b/spec/features/users_spec.rb @@ -27,7 +27,7 @@ describe "users" do fill_in 'user[password]', with: password fill_in 'user[password_confirmation]', with: password_confirmation - find('input[type="submit"]').click + click_button I18n.t("terms.update_password") end context 'when valid new password/confirmation is input' do