Permalink
Browse files

* fixed rspec test

  • Loading branch information...
hone committed Jan 13, 2009
1 parent 5f80edf commit 065dda971c20761dd109afc3f0b7da4b8d29c3c2
Showing with 2 additions and 2 deletions.
  1. +1 −1 spec/controllers/backups_controller_spec.rb
  2. +1 −1 spec/models/imap_spec.rb
@@ -68,7 +68,7 @@ def do_post
end
it "should redirect to page to show page for imap" do
-# pending( "for some reason this breaks all my imap tests b/c it thinks I'm mocking them..")
+ pending( "for some reason this breaks all my imap tests b/c it thinks I'm mocking them..")
imap_mock = mock_model( Imap )
Imap.should_receive(:new).and_return(imap_mock)
@remote_mail.stub!(:mail_type).and_return(2)
View
@@ -125,7 +125,7 @@ def setup_mock_net_imap
@imap.stub!(:generate_mbox_name).and_return( MBOX_NAME )
remove_file( MBOX_FILE_ZIP )
- @imap.download.should == MBOX_FILE_ZIP
+ @imap.download.should == File.basename( MBOX_FILE_ZIP )
File.should be_exist( MBOX_FILE_ZIP )
end
end

0 comments on commit 065dda9

Please sign in to comment.