aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-08-01 16:33:02 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-08-02 11:20:41 +0200
commit1e829811778c1bca279e4ba3816b504125a02830 (patch)
tree20e4448e92ee27ae6cb34478e1431d744d9a5cc1 /site/features/step_definitions/signup_steps.rb
parentAdd license information (diff)
downloadcouncil-webapp-1e829811778c1bca279e4ba3816b504125a02830.tar.gz
council-webapp-1e829811778c1bca279e4ba3816b504125a02830.tar.bz2
council-webapp-1e829811778c1bca279e4ba3816b504125a02830.zip
Fix problem with passwords shown as open text during signup
Diffstat (limited to 'site/features/step_definitions/signup_steps.rb')
-rw-r--r--site/features/step_definitions/signup_steps.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/site/features/step_definitions/signup_steps.rb b/site/features/step_definitions/signup_steps.rb
new file mode 100644
index 0000000..4bc1c2c
--- /dev/null
+++ b/site/features/step_definitions/signup_steps.rb
@@ -0,0 +1,15 @@
+Then /^I should see proper password entries$/ do
+ page.should have_xpath("//input[@type='password'][@name='user[password]']")
+ page.should have_xpath("//input[@type='password'][@name='user[password_confirmation]']")
+end
+
+When /^I fill in bad user info$/ do
+ When "I fill in the following:", table(%{
+ |user[name] |User Name |
+ |user[email] |user@name.com |
+ |user[irc_nick] |user |
+ |user[password] |SomePassword |
+ |user[password_confirmation]|some_password |
+ })
+
+end