Update routing spec generator to use 'expect' syntax