Re: [rspec-users] RSpec stub/mock I18n

2009-08-20 Thread Maurício Linhares
Yes, so it's useless trying to stub it. Tools like Remarkable will let you spec that validates call in a better way -> http://github.com/carlosbrando/remarkable/ - Maurício Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Thu, Aug 20, 2009 at 6:07 PM, BallaBall wrot

Re: [rspec-users] RSpec stub/mock I18n

2009-08-20 Thread BallaBall
Ohhh so when the model is first loaded it has already run the method im trying to stub? On Aug 20, 2:00 pm, Maurício Linhares wrote: > When you spec runs (and your stub! is called) the method has already > been called, so your stub will never catch anything. > > - > Maurício > Linhareshttp://cod

Re: [rspec-users] RSpec stub/mock I18n

2009-08-20 Thread Maurício Linhares
When you spec runs (and your stub! is called) the method has already been called, so your stub will never catch anything. - Maurício Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Thu, Aug 20, 2009 at 5:03 PM, BallaBall wrote: > I have some model with the followin