Need Unit Testing

10 views
Skip to first unread message

Mohan kumar

unread,
Jul 3, 2017, 10:27:42 PM7/3/17
to bangal...@googlegroups.com
Hi all

I need Unit testing for the code below.
Can anybody help me in this ?

def terminal_access
unless terminal_access_key.present?
$redis.set("#{self.user_name}_terminal_access_cache_key",
{result: (mlodge_terminals + ltv_terminals + tv2g_terminals).flatten.as_json(only: [:app_cd, :gw_tid])}.to_json)
end
JSON(terminal_access_key)['result']
end





Thanks

Reply all
Reply to author
Forward
0 new messages