Refactor RSpec Test6