diff --git a/spec/dummy/test/decorators/minitest/view_context_test.rb b/spec/dummy/test/decorators/minitest/view_context_test.rb index c1df670e..c2d6b6f3 100644 --- a/spec/dummy/test/decorators/minitest/view_context_test.rb +++ b/spec/dummy/test/decorators/minitest/view_context_test.rb @@ -14,7 +14,7 @@ def it_does_not_leak_view_context end describe "A controller test" do - tests Class.new(ActionController::Base) + subject{ Class.new(ActionController::Base) } it_does_not_leak_view_context end diff --git a/spec/dummy/test/decorators/test_unit/view_context_test.rb b/spec/dummy/test/decorators/test_unit/view_context_test.rb index 98b71a75..faa17389 100644 --- a/spec/dummy/test/decorators/test_unit/view_context_test.rb +++ b/spec/dummy/test/decorators/test_unit/view_context_test.rb @@ -14,7 +14,7 @@ class DecoratorTest < Draper::TestCase end class ControllerTest < ActionController::TestCase - tests Class.new(ActionController::Base) + subject{ Class.new(ActionController::Base) } it_does_not_leak_view_context end