d'oh!

---8<---
  assert_equal({"foo"=>{"bar"=>{"baz"=> {"fruit"=> "orange" }}}}, h)
--->8---


It still fails. My point was that this unresolved, literal lookup path
is inserted:

---8<---
  1) Failure:
test_deep_set(LookupTest) [test/unit/ut_11_lookup.rb:55]:
<{"foo"=>{"bar"=>{"baz"=>{"fruit"=>"orange"}}}}> expected but was
<{"foo"=>{"bar"=>{"baz"=>{"fruit"=>"pineapple"}}},
 "foo.bar.baz.fruit"=>"orange"}>.
--->8---

Apologies!


On 8 Apr, 19:58, Nando Sola <[email protected]> wrote:

> ---8<---
>    def test_deep_set
>
>      h = {'foo'=>{'bar'=>{'baz'=>{'fruit'=>'pineapple'}}}}
>      Ruote.set(h, 'foo.bar.baz.fruit', 'orange')
>
>      assert_equal({"foo"=>{"bar"=>{"baz"=> "orange" }}}, h)
>    end
>
>   -->8--
>

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to