Permalink
Browse files

added a test to provoke a bug in ActiveSupport

  • Loading branch information...
1 parent 96bc427 commit 8280087890f51f7622f34e519877d1296e2853ba @apotonick apotonick committed Sep 30, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/hooks_test.rb
View
@@ -31,6 +31,13 @@ def executed
@klass.after_eight do true; end
assert @klass._after_eight_callbacks.first.kind_of? Proc
end
+
+ should "be inherited" do
+ subklass = Class.new(@klass) do
+ end
+
+ assert_equal [], subklass.after_eight
+ end
end
context "Hooks#run_hook" do

0 comments on commit 8280087

Please sign in to comment.