mercredi 27 janvier 2016

Testing loops in rspec

I need test loop

def some_method(param) do
 loop do
  some_magic_code
 end
end

I need to know how to test some_magic_code but i don't now how stub loop. Now my rspec test go in infinite loop.

Aucun commentaire:

Enregistrer un commentaire