mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Remove obsolete test case, since we have move Rails::LogSubscriber to ActiveSupport::LogSubscriber in [6788db824a] [#4816 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
committed by
José Valim
parent
d69ebb849a
commit
974196b091
@@ -48,15 +48,6 @@ module RailtiesTest
|
||||
assert_equal "hello", AppTemplate::Application.config.foo.greetings
|
||||
end
|
||||
|
||||
test "railtie can add log subscribers" do
|
||||
begin
|
||||
class Foo < Rails::Railtie ; log_subscriber(:foo, Rails::LogSubscriber.new) ; end
|
||||
assert_kind_of Rails::LogSubscriber, Rails::LogSubscriber.log_subscribers[0]
|
||||
ensure
|
||||
Rails::LogSubscriber.log_subscribers.clear
|
||||
end
|
||||
end
|
||||
|
||||
test "railtie can add to_prepare callbacks" do
|
||||
$to_prepare = false
|
||||
class Foo < Rails::Railtie ; config.to_prepare { $to_prepare = true } ; end
|
||||
|
||||
Reference in New Issue
Block a user