default
value gets used when given
block evaluates to false
#1681
Labels
default
value gets used when given
block evaluates to false
#1681
So, given this hypothetical scenario (using
grape
v1.0.1):I get the following when
foo
is:a
, as expected:However, when
foo
is:b
, this seems unexpected:Reason why I was surprised by this is that the parameters contract says that the default value of
:my_default
is only relevant whenfoo
isa
. Instead, I should be getting the following:Is this a known case, or a bug?
The text was updated successfully, but these errors were encountered: