diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-02 09:43:27 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-02 09:43:27 -0800 |
commit | 91983724211b0e654c9e79e73bacf10a65adf172 (patch) | |
tree | a54034bc1d5b90687757d904c2bb121b23a00ac1 /actionpack | |
parent | dd41387f343e813c40dc997135207f4ac81c58ab (diff) | |
download | rails-91983724211b0e654c9e79e73bacf10a65adf172.tar.gz rails-91983724211b0e654c9e79e73bacf10a65adf172.tar.bz2 rails-91983724211b0e654c9e79e73bacf10a65adf172.zip |
Ruby 1.8: Y U NO FUN?
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/middleware_stack/middleware_test.rb | 4 |
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 |