[rspec] refactor format option