Re: [rspec-users] How to test a method that return random values

2010-07-11 Thread David Chelimsky
On Jul 6, 2010, at 1:35 PM, Guilherme wrote: > Hi, > > How can I test this method using rspec ? > > def self.generate_calculation number1, number2, operation > number1 = rand(number1) > number2 = rand(number2) > ... > end > > This method return an operation with those random numb

[rspec-users] How to test a method that return random values

2010-07-11 Thread Guilherme
Hi, How can I test this method using rspec ? def self.generate_calculation number1, number2, operation number1 = rand(number1) number2 = rand(number2) ... end This method return an operation with those random numbers. Any tip ? ___ r