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
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
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
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