How to test for stdout that is inside a .each iteration block, using rspec?

后端 未结 0 1090
一生所求
一生所求 2020-12-10 09:05

I have a sample code:

  def print_stuff(first_num, second_num)
    puts \'hello\'
    (first_num..second_num).to_a.each do |num|
      puts \'The current numb         


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