Re: [rspec-users] should_receive working in before(:each) but not in example

2008-09-17 Thread Tim Haines
Lol. I need another coffee. The should's needed to be above the post. :-) Tim. On Thu, Sep 18, 2008 at 3:23 PM, Tim Haines <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm striking a wee problem - and haven't been able to figure it out. In my > before statement I'm setting up a mock video. I'd

Re: [rspec-users] should_receive working in before(:each) but not in example

2008-09-17 Thread Mark Wilden
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!) >

[rspec-users] should_receive working in before(:each) but not in example

2008-09-17 Thread Tim Haines
Hi there, I'm striking a wee problem - and haven't been able to figure it out. In my before statement I'm setting up a mock video. I'd like one of my examples to check that original= and save! are being called on the mock video, so I have an example that looks like this: it "should update