File Manager

Path: /opt/chef.upgrade/embedded/lib/ruby/gems/2.3.0/gems/simplecov-0.13.0/spec/

Viewing File: deleted_source_spec.rb

require "helper"

# Test to verify correct handling of deleted files
# See https://github.com/colszowka/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