requiring capybara only for integration specs
parsing nested hashes
formatting nested hashes