format nested to rspec