Re: [rspec-users] problem with should_receive in controller spec

2009-10-29 Thread David Chelimsky
On Oct 29, 2009, at 5:56 AM, Amit Kulkarni wrote: I am trying to write controller spec but i am getting some problem. Following is the controller code: def create @bb_post = @feature.posts.new( params[ :bb_post ] ) if @bb_post.save flash[ :notice ] = 'Blog post was successfully crea

[rspec-users] problem with should_receive in controller spec

2009-10-29 Thread Amit Kulkarni
I am trying to write controller spec but i am getting some problem. Following is the controller code: def create @bb_post = @feature.posts.new( params[ :bb_post ] ) if @bb_post.save flash[ :notice ] = 'Blog post was successfully created.' format.html { redirect_to( blog_bb_p