summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-07-26 22:54:30 -0600
committermo khan <mo@mokhan.ca>2013-07-26 22:54:30 -0600
commita10dec811ef0fe728348ce307bbe599d61068378 (patch)
treec83b4a5a62d3afa608457a0a95436fa1f9f70e76 /spec/features
parentccd7281925ec804aa23a0ecca98c4a40d424b690 (diff)
get change password spec to work without selenium
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/change_password_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/features/change_password_spec.rb b/spec/features/change_password_spec.rb
index f40c19dc..1c8fd22f 100644
--- a/spec/features/change_password_spec.rb
+++ b/spec/features/change_password_spec.rb
@@ -1,6 +1,6 @@
require "spec_helper"
-describe "changing my password", :js => true do
+describe "changing my password" do
context "when changing my password" do
let(:user) { create(:user, :password => "password") }
@@ -11,8 +11,9 @@ describe "changing my password", :js => true do
fill_in('user_password', :with => "password")
end
click_button("Sign In")
- click_link(user.name)
- click_link("Settings")
+ #click_link(user.name)
+ visit settings_path
+ #click_link("Settings")
click_link("Password")
within(".form-horizontal") do
fill_in('user_password', :with => "mopass")