Commit b759d64186d8ccb12910a4332aef9db6446fe2f2
1 parent
d3ade277
Exists in
master
and in
29 other branches
AccountControllerTest: fix assumptions on call to User.data_hash
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/functional/account_controller_test.rb
... | ... | @@ -712,7 +712,7 @@ class AccountControllerTest < ActionController::TestCase |
712 | 712 | login_as 'ze' |
713 | 713 | |
714 | 714 | xhr :get, :user_data |
715 | - assert_equal User.find_by_login('ze').data_hash.merge({ 'foo' => 'bar', 'test' => 5 }), ActiveSupport::JSON.decode(@response.body) | |
715 | + assert_equal User.find_by_login('ze').data_hash(@controller.gravatar_default).merge({ 'foo' => 'bar', 'test' => 5 }), ActiveSupport::JSON.decode(@response.body) | |
716 | 716 | end |
717 | 717 | |
718 | 718 | should 'activate user when activation code is present and correct' do | ... | ... |