aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/middleware_stack/middleware_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/dispatch/middleware_stack/middleware_test.rb')
-rw-r--r--actionpack/test/dispatch/middleware_stack/middleware_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/middleware_stack/middleware_test.rb b/actionpack/test/dispatch/middleware_stack/middleware_test.rb
index aedd5feb38..4e16fdbc77 100644
--- a/actionpack/test/dispatch/middleware_stack/middleware_test.rb
+++ b/actionpack/test/dispatch/middleware_stack/middleware_test.rb
@@ -33,7 +33,9 @@ module ActionDispatch
k = Class.new
mw = Middleware.new k
assert_operator mw, :==, k
- assert_operator mw, :!=, Class.new
+
+ result = mw != Class.new
+ assert result, 'middleware should not equal other anon class'
end
def test_double_equal_works_with_strings