This would be a good candidate for using a Page object. See: http://robots.thoughtbot.com/post/35776432958/better-acceptance-tests-with-page-objects