[rspec-users] Rspecing this simple controller it is driving me mad...

2008-04-06 Thread roberto belardo
Hi all, here i am again with this stupid problem in rspecing this controller action: CommentsController def create @comment = Comment.new(params[:comment]) @user = User.find(params[:user_id]) [16] @comment.author = @user @comment.save end

Re: [rspec-users] Rspecing this simple controller it is driving me mad...

2008-04-06 Thread Jarkko Laine
On 6.4.2008, at 14.20, roberto belardo wrote: Hi all, here i am again with this stupid problem in rspecing this controller action: CommentsController def create @comment = Comment.new(params[:comment]) @user = User.find(params[:user_id]) [16] @comment.a

Re: [rspec-users] Rspecing this simple controller it is driving me mad...

2008-04-06 Thread roberto belardo
Thank you very much for you quick answer! Naturally now it works. Thanks for the long version note too. I already know that, and my code is just a test to play with rspec, but i really appreciate your note. Thank you for your help, see you the next problem, Roberto. :-) --- Jarkko Laine <[EMAIL

Re: [rspec-users] Autotest RSpec Not Running on Model Save's?

2008-04-06 Thread Willem Källman
Same problem here, but I guess it has nothing to do with RSpec or the fact that you are testing a model. Instead, Autotest seems to misbehave. Say we have a project directory with these contents: lib/script.rb spec/spec_script.rb spec/spec.opts The following is what Autotest does on my system: A