aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-07-24 10:22:22 +0200
committerJosé Valim <jose.valim@gmail.com>2010-07-24 10:22:22 +0200
commit834bd23a07a84ff631da1ded37c643a3a371cb9a (patch)
treeae538e553341baa1bb310e9686a2f07ed319e1c1 /activesupport/test
parent85980852a03f8e01c4079e21a429589380cf0d64 (diff)
downloadrails-834bd23a07a84ff631da1ded37c643a3a371cb9a.tar.gz
rails-834bd23a07a84ff631da1ded37c643a3a371cb9a.tar.bz2
rails-834bd23a07a84ff631da1ded37c643a3a371cb9a.zip
Get rid of instrumenter.elapsed.
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/notifications_test.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/activesupport/test/notifications_test.rb b/activesupport/test/notifications_test.rb
index 41e8ca4ae7..9faa11efbc 100644
--- a/activesupport/test/notifications_test.rb
+++ b/activesupport/test/notifications_test.rb
@@ -172,15 +172,6 @@ module Notifications
:exception => ["RuntimeError", "FAIL"]], @events.last.payload
end
- def test_elapsed
- instrument(:something) do
- sleep(0.001)
- end
-
- # Elapsed returns duration in ms
- assert_in_delta 1, ActiveSupport::Notifications.instrumenter.elapsed, 100
- end
-
def test_event_is_pushed_even_without_block
instrument(:awesome, :payload => "notifications")
assert_equal 1, @events.size