diff options
author | 2011-08-01 16:33:02 +0200 | |
---|---|---|
committer | 2011-08-02 11:20:41 +0200 | |
commit | 1e829811778c1bca279e4ba3816b504125a02830 (patch) | |
tree | 20e4448e92ee27ae6cb34478e1431d744d9a5cc1 | |
parent | Add license information (diff) | |
download | council-webapp-1e829811778c1bca279e4ba3816b504125a02830.tar.gz council-webapp-1e829811778c1bca279e4ba3816b504125a02830.tar.bz2 council-webapp-1e829811778c1bca279e4ba3816b504125a02830.zip |
Fix problem with passwords shown as open text during signup
-rw-r--r-- | site/Gemfile.lock | 7 | ||||
-rw-r--r-- | site/config/hobo_routes.rb | 15 | ||||
-rw-r--r-- | site/features/signup.feature | 12 | ||||
-rw-r--r-- | site/features/step_definitions/signup_steps.rb | 15 |
4 files changed, 31 insertions, 18 deletions
diff --git a/site/Gemfile.lock b/site/Gemfile.lock index 277f060..757bf78 100644 --- a/site/Gemfile.lock +++ b/site/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: git://github.com/ahenobarbi/hobo.git - revision: c9c13eb614a3c4a699a59d02e4757c2cdd682988 + revision: 6051f2f6b1f320f05687454e580af2f6849597e4 branch: rails3 specs: dryml (1.3.0) @@ -148,7 +148,7 @@ GEM faraday (~> 0.6.1) multi_json (>= 0.0.5) orm_adapter (0.0.5) - polyglot (0.3.1) + polyglot (0.3.2) rack (1.2.3) rack-mount (0.6.14) rack (>= 1.0.0) @@ -202,7 +202,8 @@ GEM sqlite3 (>= 1.3.3) term-ansicolor (1.0.5) thor (0.14.6) - treetop (1.4.9) + treetop (1.4.10) + polyglot polyglot (>= 0.3.1) typhoeus (0.2.4) mime-types diff --git a/site/config/hobo_routes.rb b/site/config/hobo_routes.rb index cdddabf..a223db4 100644 --- a/site/config/hobo_routes.rb +++ b/site/config/hobo_routes.rb @@ -1,18 +1,3 @@ -# Gentoo Council Web App - to help Gentoo Council do their job better -# Copyright (C) 2011 Joachim Filip Bartosik -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, version 3 of the License -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - # This is an auto-generated file: don't edit! # You can add your own routes in the config/routes.rb file # which will override the routes in this file. diff --git a/site/features/signup.feature b/site/features/signup.feature new file mode 100644 index 0000000..573eac8 --- /dev/null +++ b/site/features/signup.feature @@ -0,0 +1,12 @@ +Feature: Singup + As user I want to be able to signup + And do it properly + + Scenario: Always show password as in password type inputs + When I am on the homepage + And I follow "Signup" + Then I should see proper password entries + + When I fill in bad user info + And I press "Signup" + Then I should see proper password entries 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 |