spec/react/children_spec.rb in hyper-react-0.10.0 vs spec/react/children_spec.rb in hyper-react-0.11.0
- old
+ new
@@ -13,10 +13,10 @@
let(:childs) { [React.create_element('a'), React.create_element('li')] }
let(:element) { React.create_element(component) { childs } }
let(:children) { described_class.new(`#{element.to_n}.props.children`) }
before(:each) do
- renderElementToDocument(element)
+ React::Test::Utils.render_into_document(element)
end
it 'is enumerable' do
nodes = children.map { |elem| elem.element_type }
expect(nodes).to eq(['a', 'li'])