lib/gitlab/dangerfiles/spec_helper.rb in gitlab-dangerfiles-2.11.0 vs lib/gitlab/dangerfiles/spec_helper.rb in gitlab-dangerfiles-3.0.0
- old
+ new
@@ -22,10 +22,12 @@
end
# A stubbed out Dangerfile for use in tests
def self.testing_dangerfile
env = Danger::EnvironmentManager.new(testing_env)
- Danger::Dangerfile.new(env, testing_ui)
+ Danger::Dangerfile.new(env, testing_ui).tap do |dangerfile|
+ dangerfile.defined_in_file = Dir.pwd
+ end
end
def self.fake_danger
Class.new do
attr_reader :git, :gitlab, :helper