diff options
author | Azul <azul@leap.se> | 2013-01-23 13:13:41 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-01-23 13:13:41 +0100 |
commit | 30f406de954bac1da5fef7cdd753c0af16f11051 (patch) | |
tree | d22dab24afa09e3949d0babcaa2d773ee03c1827 /users/app/controllers | |
parent | b530279a144ad5fb35070952898c8e6ae3ba68ea (diff) |
added unit tests for user presenter
changed the way the presenter works. Will need functional testing
Diffstat (limited to 'users/app/controllers')
-rw-r--r-- | users/app/controllers/webfinger_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/app/controllers/webfinger_controller.rb b/users/app/controllers/webfinger_controller.rb index f28dd3e..8872802 100644 --- a/users/app/controllers/webfinger_controller.rb +++ b/users/app/controllers/webfinger_controller.rb @@ -12,8 +12,8 @@ class WebfingerController < ApplicationController username = params[:q].split('@')[0].to_s.downcase user = User.find_by_login(username) raise RECORD_NOT_FOUND, 'User not found' unless user.present? - @subject = Webfinger::UserPresenter.new(user, request) - respond_with @subject + @presenter = Webfinger::UserPresenter.new(user, request) + respond_with @presenter end end |