On Wed, Sep 17, 2008 at 8:23 PM, Tim Haines <[EMAIL PROTECTED]> wrote:
> it "should update the original video and save the video" do > post :upload_video, :video_id => 'hi', :Filedata => @video_file > @vid.should_receive(:original=) > @vid.should_receive(:save!) > end > > This fails saying that @vid didn't receive original=. However, if I move > the two should's up into the before block, then the example passes. > Right. should_receive specifies what should happen in the future, not what has happened in the past. ///ark
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users