RSpec: refactor table_field spec