diff options
author | yui-knk <spiketeika@gmail.com> | 2015-10-22 20:33:32 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2015-10-22 20:33:32 +0900 |
commit | 36005af64a0c233e7391688296b183acb73dc0c0 (patch) | |
tree | 67c32c241f2f25f7f0a7dfa4f20a50d6c1cfb74d /activesupport/lib/active_support/testing/stream.rb | |
parent | 3eda77f0eeeb479355b8845aa71cb0da1acd583d (diff) | |
download | rails-36005af64a0c233e7391688296b183acb73dc0c0.tar.gz rails-36005af64a0c233e7391688296b183acb73dc0c0.tar.bz2 rails-36005af64a0c233e7391688296b183acb73dc0c0.zip |
Use sufficient a regexp anchor to check `@response.content_type.to_s`
This commit follows up of ea9bc06c9a47b839d5e2db94ba6bf7e29c8f0ae9.
To check `@response.content_type.to_s` is ended with `"xml"`,
to use `\z` is sufficient.
Diffstat (limited to 'activesupport/lib/active_support/testing/stream.rb')
0 files changed, 0 insertions, 0 deletions