Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* fixed rspec test

  • Loading branch information...
commit 065dda971c20761dd109afc3f0b7da4b8d29c3c2 1 parent 5f80edf
@hone authored
View
2  spec/controllers/backups_controller_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
2  spec/models/imap_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.