This conversion is done by Transpec 3.0.7 with the following command: transpec * 17 conversions from: obj.should to: expect(obj).to For more details: https://github.com/yujinakayama/transpec#supported-conversions
For now it may be save to ignore them. However in a future implementation the wildcard should match any language given by the 'available_languages' array in methods determinating a preferred or compatible language for the user.
…irectly Allows you to use the gem outside of environments where the middleware does not run, such as controller specs.
1. If header is malformed, pre-cache empty array instead of parsing it each time 2. Validate locale and type cast its quality during first map iteration to reduce number of operations 3. Split locales by string "," instead of using regex /,/ to increase performance