Permalink
Browse files

Bumped authpwn for old_password change.

  • Loading branch information...
pwnall committed Feb 20, 2014
1 parent 8f15118 commit 01f7aba94957d20c69762d398acc60cd790de067
Showing with 7 additions and 7 deletions.
  1. +1 −1 Gemfile
  2. +2 −2 Gemfile.lock
  3. +2 −2 app/views/session/password_change.html.erb
  4. +2 −2 test/functional/session_controller_test.rb
View
@@ -5,7 +5,7 @@ gem 'rails', '>= 4.1.0.rc1'
gem 'mysql2', '>= 0.3.14'
gem 'sqlite3', '>= 1.3.8'
-gem 'authpwn_rails', '>= 0.16.1'
+gem 'authpwn_rails', '>= 0.16.2'
gem 'configvars_rails', '>= 0.6.1'
gem 'gravatar-ultimate', '>= 2.0.0'
gem 'grit', git: 'https://github.com/pwnall/grit.git', branch: 'gitty'
View
@@ -48,7 +48,7 @@ GEM
tzinfo (~> 1.1)
arel (5.0.0)
atomic (1.1.14)
- authpwn_rails (0.16.1)
+ authpwn_rails (0.16.2)
fbgraph_rails (>= 0.2.2)
rails (>= 3.2.17)
better_errors (1.1.0)
@@ -231,7 +231,7 @@ PLATFORMS
ruby
DEPENDENCIES
- authpwn_rails (>= 0.16.1)
+ authpwn_rails (>= 0.16.2)
better_errors
binding_of_caller
coffee-rails (>= 4.0.1)
@@ -21,9 +21,9 @@
<section class="fields">
<% unless @credential.new_record? %>
<div class="field">
- <%= label_tag :old_password, 'Current Password' %><br />
+ <%= f.label :old_password, 'Current Password' %><br />
<span class="value">
- <%= password_field_tag :old_password %>
+ <%= f.password_field :old_password %>
</span>
</div>
<% end %>
@@ -96,7 +96,7 @@ class SessionControllerTest < ActionController::TestCase
assert_select 'span[class="password_age"]'
assert_select 'form[action=?][method="post"]',
change_password_session_path do
- assert_select 'input[name="old_password"]'
+ assert_select 'input[name=?]', 'credential[old_password]'
assert_select 'input[name=?]', 'credential[password]'
assert_select 'input[name=?]', 'credential[password_confirmation]'
assert_select 'button[type="submit"]'
@@ -111,7 +111,7 @@ class SessionControllerTest < ActionController::TestCase
assert_select 'span[class="password_age"]', count: 0
assert_select 'form[action=?][method="post"]',
change_password_session_path do
- assert_select 'input[name="old_password"]', count: 0
+ assert_select 'input[name=?]', 'credential[old_password]', count: 0
assert_select 'input[name=?]', 'credential[password]'
assert_select 'input[name=?]', 'credential[password_confirmation]'
assert_select 'button[type="submit"]'

0 comments on commit 01f7aba

Please sign in to comment.