refactor visitor rspec