lib/zendesk2/client/requests/get_current_user.rb in zendesk2-0.1.1 vs lib/zendesk2/client/requests/get_current_user.rb in zendesk2-0.1.2
- old
+ new
@@ -8,16 +8,11 @@
end
end # Real
class Mock
def get_current_user
- body = self.data[:users][@current_user_id]
+ current_user # re-seed if necessary
- response(
- :path => "/users/me.json",
- :body => {
- "user" => body
- },
- )
+ get_user("id" => @current_user["id"])
end
end # Mock
end