Permalink
Browse files

match against ActiveSupport anywhere in the error name

  • Loading branch information...
1 parent f978e77 commit df484dfd1a6aba2cb4953ccbff76fb323f66e7e0 @technoweenie committed Jan 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/middleware/instrumentation_test.rb
View
2 test/middleware/instrumentation_test.rb
@@ -14,7 +14,7 @@ def test_default_instrumenter
begin
instrumenter = options.instrumenter
rescue NameError => err
- assert_equal :ActiveSupport, err.name
+ assert_match 'ActiveSupport', err.name.to_s
else
assert_equal ActiveSupport::Notifications, instrumenter
end

0 comments on commit df484df

Please sign in to comment.