[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RFH: Need an explanation to fix #952027



Hi,

I just worked on fixing #952027. The issue at hand is easily fixable and I
already pushed the patch to Git. Unfortunately two more test failures appeared
recently, both of the same kind:

https://salsa.debian.org/ruby-team/ruby-declarative/-/jobs/627635#L542

> dup of arguments#test_0001_anonymous = 0.00 s = F
> 
> 
> Failure:
> dup of arguments#test_0001_anonymous [/tmp/build-area/ruby-declarative-0.0.10/test/heritage_test.rb:32]:
> --- expected
> +++ actual
> @@ -1 +1,3 @@
> -"[{:method=>:property, :args=>[:name, {:render=>true, :nested=>{:render=>false}}], :block=>#<Proc:@heritage_test.rb:4>}]"
> +# encoding: US-ASCII
> +#    valid: true
> +"[{:method=>:property, :args=>[:name, {:render=>true, :nested=>{:render=>false}}], :block=>#<Proc: heritage_test.rb:4>}]"
[..]
> HeritageTest#test_0001_anonymous = 0.00 s = F
> 
> 
> Failure:
> HeritageTest#test_0001_anonymous [/tmp/build-area/ruby-declarative-0.0.10/test/heritage_test.rb:17]:
> --- expected
> +++ actual
> @@ -1 +1,3 @@
> -"[{:method=>:representation_wrap=, :args=>[true], :block=>nil}, {:method=>:property, :args=>[:name, {:enable=>true}], :block=>nil}, {:method=>:property, :args=>[:id, {}], :block=>#<Proc:@heritage_test.rb:4>}]"
> +# encoding: US-ASCII
> +#    valid: true
> +"[{:method=>:representation_wrap=, :args=>[true], :block=>nil}, {:method=>:property, :args=>[:name, {:enable=>true}], :block=>nil}, {:method=>:property, :args=>[:id, {}], :block=>#<Proc: heritage_test.rb:4>}]"

The output regarding ":block=>#<Proc:...>" doesn't match the expectation. Of
course I could easily change the expected result to match the current output.
However I'd like to understand the problem. Can someone please give me a few
buzzwords to search for or an explanation what is happening here?

TIA and regards, Daniel

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: