<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -16,7 +16,7 @@ module ConfigFindAllAsTree
         
         # iterate through all path levels
         path.each do |path_element|
-          if path_element == path.last
+          if path_element.equal?(path.last)
             # We are at the end of the path, so set the settting object as the value
             current_level[path_element] = setting
             </diff>
      <filename>lib/config_find_all_as_tree.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,7 @@ describe Radiant::Config, 'find_all_as_tree' do
     @title  = Radiant::Config.create(:key =&gt; 'admin.title', :value =&gt; 'Radiant CMS')
     @parts  = Radiant::Config.create(:key =&gt; 'defaults.page.parts', :value =&gt; 'body, extended')
     @status = Radiant::Config.create(:key =&gt; 'defaults.page.status', :value =&gt; 'draft')
+    @repetitive = Radiant::Config.create(:key =&gt; 'repetitive.setting.setting', :value =&gt; 'foo')
   end
   
   it &quot;should find all settings and return a tree as a nested hash&quot; do
@@ -12,5 +13,6 @@ describe Radiant::Config, 'find_all_as_tree' do
     result['admin']['title'].should             == @title
     result['defaults']['page']['parts'].should  == @parts
     result['defaults']['page']['status'].should == @status
+    result['repetitive']['setting']['setting'].should == @repetitive
   end
 end
\ No newline at end of file</diff>
      <filename>spec/models/config_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b4fe29d4ec456dcff0b42a199f5a0b173f616a97</id>
    </parent>
  </parents>
  <author>
    <name>Taylor Barstow</name>
    <email>taylorbarstow@gmail.com</email>
  </author>
  <url>http://github.com/Squeegy/radiant-settings/commit/d93d9d78436960f5d40ec8d23067a92d105176bf</url>
  <id>d93d9d78436960f5d40ec8d23067a92d105176bf</id>
  <committed-date>2009-07-24T15:11:52-07:00</committed-date>
  <authored-date>2009-07-14T08:23:16-07:00</authored-date>
  <message>avoid prematurely truncating paths with repeated key(s)

Signed-off-by: Jim Gay &lt;jim@saturnflyer.com&gt;</message>
  <tree>948dfd49ffd4a3d0bdd4c55b74cd314e8aea3476</tree>
  <committer>
    <name>Jim Gay</name>
    <email>jim@saturnflyer.com</email>
  </committer>
</commit>
