tutorial converted to rails 4 and newer capaybara rails tests