spec/spec_helper.rb in danger-todoist-0.3.0 vs spec/spec_helper.rb in danger-todoist-1.0.0

- old
+ new

@@ -55,5 +55,17 @@ # A stubbed out Dangerfile for use in tests def testing_dangerfile env = Danger::EnvironmentManager.new(testing_env) Danger::Dangerfile.new(env, testing_ui) end + +def failures + @dangerfile.status_report[:errors] +end + +def warnings + @dangerfile.status_report[:warnings] +end + +def markdowns + @dangerfile.status_report[:markdowns].map(&:message) +end