How to test an if-condition not been excuted?

前端 未结 0 899
面向向阳花
面向向阳花 2021-02-09 02:31

I\'m new to Rspec. I have a code like this:

if @context.persona == :system && @context.scopes&.include?(SEARCH_SCOPE)
  return 
end
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题