1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

tests, test should not care wether 9ms or 11ms have passed.

This solves:

```
Expected /Completed 200 OK in [\d]ms/ to match "Completed 200 OK in 943ms".
```
This commit is contained in:
Yves Senn 2015-11-04 16:40:19 -05:00
parent b7f547e64a
commit 23bb31b158

View file

@ -170,7 +170,7 @@ class ACLogSubscriberTest < ActionController::TestCase
def test_process_action_with_view_runtime
get :show
wait
assert_match(/Completed 200 OK in [\d]ms/, logs[1])
assert_match(/Completed 200 OK in \d+ms/, logs[1])
end
def test_append_info_to_payload_is_called_even_with_exception