parent
b857d1aeee
commit
d16892d5da
@ -0,0 +1,25 @@
|
|||||||
|
From a88115f8668ff9c2ca91e11afc0529105c06446f Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@riseup.net>
|
||||||
|
Date: Sun, 12 Jan 2020 13:41:59 +0100
|
||||||
|
Subject: [PATCH] Remove unintended `private` call
|
||||||
|
|
||||||
|
From reading https://bugs.ruby-lang.org/issues/13249, I don't think
|
||||||
|
`private` is having any effect here, since it's only supposed to affect
|
||||||
|
further methods defined inside the current class method (if at all), and
|
||||||
|
this method does not define any method inside itself.
|
||||||
|
---
|
||||||
|
lib/cucumber/core/test/result.rb | 1 -
|
||||||
|
1 file changed, 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/lib/cucumber/core/test/result.rb b/lib/cucumber/core/test/result.rb
|
||||||
|
index 136002a..21d06c8 100644
|
||||||
|
--- a/lib/cucumber/core/test/result.rb
|
||||||
|
+++ b/lib/cucumber/core/test/result.rb
|
||||||
|
@@ -9,7 +9,6 @@ module Result
|
||||||
|
STRICT_AFFECTED_TYPES = [:flaky, :undefined, :pending].freeze
|
||||||
|
|
||||||
|
def self.ok?(type, be_strict = StrictConfiguration.new)
|
||||||
|
- private
|
||||||
|
class_name = type.to_s.slice(0, 1).capitalize + type.to_s.slice(1..-1)
|
||||||
|
const_get(class_name).ok?(be_strict.strict?(type))
|
||||||
|
end
|
Loading…
Reference in new issue