Refactor several tests with better RSpec practices