#! /bin/env ruby

require 'test/unit'
require 'tempfile'

require File.dirname(__FILE__) + '/../stream_editor'


class StreamEditorTest < Test::Unit::TestCase

  TARGET_FILENAME = File.dirname(__FILE__) + "/stream_editor_test_target.txt"
  TARGET_FILE_CONTENTS = [
    "abc",
    "def",
  ]

  def setup
    @f_target = File.open(TARGET_FILENAME, 'w')
    TARGET_FILE_CONTENTS.each do |line|
      @f_target.puts line
    end
  end

  def teardown
    @f_target.close if @f_target
    File.delete(TARGET_FILENAME)
  end

  def test_initialize_with_no_existence_file
    assert_raise(StreamEditor::FileNotFoundError) do
      StreamEditor.new('impossible_to_exist')
    end
  end
end


#! /bin/env ruby

require 'test/unit'
require 'tempfile'

require File.dirname(__FILE__) + '/../base/stream_editor'


class StreamEditorTest < Test::Unit::TestCase

  TARGET_FILENAME = File.dirname(__FILE__) + "/stream_editor_test_target.txt"
  TARGET_FILE_CONTENTS = [
    "abc",
    "def",
  ]

  def setup
    @f_target = File.open(TARGET_FILENAME, 'w')
    TARGET_FILE_CONTENTS.each do |line|
      @f_target.puts line
    end
  end

  def teardown
    @f_target.close if @f_target
    File.delete(TARGET_FILENAME)
  end

  def test_initialize_with_no_existence_file
    assert_raise(StreamEditor::FileNotFoundError) do
      StreamEditor.new('impossible_to_exist')
    end
  end
end


Correct 'overriding_check.rb' to output message only if not blank
Correct 'overriding_check.rb' to output message only if not blank

version=0.7.2.5
script/test/stream_editor_test.rb
- 'stream_editor.rb' was moved to directory script/base.
