sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 817404bd6c6acd869238562dd83e3ad60ec7246e
parent a5c0b11f01ac0eb006fdd72f0e53f206ea030950
Author: Zeger-Jan van de Weg <mail@zjvandeweg.nl>
Date:   Wed, 28 Jan 2015 12:55:00 +0100

Edited the tests, File::exist override removed

Diffstat:
M test/test_message.rb | 18 ------------------
M test/test_messages_dir.rb | 18 ------------------
2 files changed, 0 insertions(+), 36 deletions(-)
diff --git a/test/test_message.rb b/test/test_message.rb
@@ -6,24 +6,6 @@ require 'stringio'
 
 require 'dummy_source'
 
-# override File.exists? to make it work with StringIO for testing.
-# FIXME: do aliasing to avoid breaking this when sup moves from
-# File.exists? to File.exist?
-
-class File
-
-  def File.exists? file
-    # puts "fake File::exists?"
-
-    if file.is_a?(StringIO)
-      return false
-    end
-    # use the different function
-    File.exist?(file)
-  end
-
-end
-
 module Redwood
 
 class TestMessage < ::Minitest::Unit::TestCase
diff --git a/test/test_messages_dir.rb b/test/test_messages_dir.rb
@@ -6,24 +6,6 @@ require 'stringio'
 
 require 'dummy_source'
 
-# override File.exists? to make it work with StringIO for testing.
-# FIXME: do aliasing to avoid breaking this when sup moves from
-# File.exists? to File.exist?
-
-class File
-
-  def File.exists? file
-    # puts "fake File::exists?"
-
-    if file.is_a?(StringIO)
-      return false
-    end
-    # use the different function
-    File.exist?(file)
-  end
-
-end
-
 module Redwood
 
 class TestMessagesDir < ::Minitest::Unit::TestCase