require 'helper'

# Test to verify correct handling of deleted files,
# see issue #9 on github
class TestDeletedSource < Minitest::Test
  context "A source file which is subsequently deleted" do
    should "not cause an error" do
      Dir.chdir(File.join(File.dirname(__FILE__), 'fixtures')) do
        `ruby deleted_source_sample.rb`
        assert_equal 0, $?.exitstatus
      end
    end
  end
end
