Don't clone when with_fallback is called#14
Conversation
|
Tests are broken. Do you intend to change that behavior? |
|
Yes. Currently behaviorc = Command.new do
xxx
end
c_fallback = c.with_fallback do
xxx
end
c == c_fallback # => falseChanged behaviorc = Command.new do
xxx
end
c_fallback = c.with_fallback do
xxx
end
c == c_fallback # => trueSo, the following test is broken. https://github.com/cookpad/expeditor/blob/master/spec/expeditor/command_functions_spec.rb#L179-L192 However, in real, I think the case doesn't exist. |
The test is broken by the change of PR.
|
So |
yes
👍 |
It means that it breaks backward compatibility. If you update version properly (0.5.0, since it's < 1.0), I think it'd be acceptable. |
|
I've deprecated the method. And I've added an entry of this PR into CHANGELOG.md . |
|
LGTM |
1 similar comment
|
LGTM |
Currently,
with_fallbackbehavior is complexity. This cause is cloning inwith_fallbackmethod.This change is required from #13 .