spec/locale_tree/siblings_spec.rb in i18n-tasks-0.5.1 vs spec/locale_tree/siblings_spec.rb in i18n-tasks-0.5.2
- old
+ new
@@ -4,10 +4,9 @@
describe 'Tree siblings / forest' do
context 'Node' do
it '::new with children' do
children = I18n::Tasks::Data::Tree::Siblings.from_key_attr([['a', value: 1]])
- #require 'byebug'; byebug
node = I18n::Tasks::Data::Tree::Node.new(
key: 'fr',
children: children
)
expect(node.to_siblings.first.children.first.parent.key).to eq 'fr'