1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
eileencodes 789f3be020 Clarify route encoding test
Since this test changed in 9220935 I noticed that it really doesn't make
sense anymore. I split the tests into 2 groups to explain what each one
does.

First these routes should throw a `bad_request` when the encoding isn't
valid. We're expecting UTF8 encoding and passing binary, that should be
a bad request.

For the second test we are setting the `show` route to set
`self.binary_params_for?` for that route which will convert the
parameters and return a `:ok` instead of a `:bad_request`.
2017-08-01 15:10:51 -04:00
..
abstract Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
assertions Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
controller Path parameters should default to UTF8 2017-08-01 13:28:57 -04:00
dispatch Clarify route encoding test 2017-08-01 15:10:51 -04:00
fixtures Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
journey Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
lib/controller Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
routing Use frozen string literal in actionpack/ 2017-07-29 14:02:40 +03:00
tmp
abstract_unit.rb [Action Pack] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00