How to test if else condition in rspec rails

后端 未结 0 416
小鲜肉
小鲜肉 2021-01-06 18:46

I\'m new to RSpec and I want to test the if-else condition of a controller, I searched on the internet but couldn\'t find results properly.

  def edit
    if          


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