diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-11-04 16:40:19 -0500 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-11-04 16:42:27 -0500 |
commit | 23bb31b158fe10e5872dc80634a7ff172531c570 (patch) | |
tree | 729ab317909360a6210b9477aa453e5d67928e38 /actionpack/test/controller | |
parent | b7f547e64aea0edaf3ebfb936e3bbfbb9f3e7a24 (diff) | |
download | rails-23bb31b158fe10e5872dc80634a7ff172531c570.tar.gz rails-23bb31b158fe10e5872dc80634a7ff172531c570.tar.bz2 rails-23bb31b158fe10e5872dc80634a7ff172531c570.zip |
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".
```
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/log_subscriber_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/log_subscriber_test.rb b/actionpack/test/controller/log_subscriber_test.rb index 7835d2768a..6ae33be3c8 100644 --- a/actionpack/test/controller/log_subscriber_test.rb +++ b/actionpack/test/controller/log_subscriber_test.rb @@ -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 |