RSpec refactor