File: faked_project.rb

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

class FakedProject
  def self.foo
    "bar"
  end
end

Dir[File.join(File.dirname(__FILE__), "faked_project/*.rb")].reject { |f| /untested/.match(f) }.each do |file|
  require file # Require all source files in project dynamically so we can inject some stuff depending on test situation
end

FakedProject.include MetaMagic