File: deleted_source_spec.rb

package info (click to toggle)
ruby-simplecov 0.22.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,500 kB
  • sloc: ruby: 5,550; makefile: 10
file content (14 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require "helper"

# Test to verify correct handling of deleted files
# See https://github.com/simplecov-ruby/simplecov/issues/9
describe "A source file which is subsequently deleted" do
  it "does not cause an error" do
    Dir.chdir(File.join(File.dirname(__FILE__), "fixtures")) do
      `ruby deleted_source_sample.rb`
      expect($?.exitstatus).to be_zero
    end
  end
end