提交 e10a2531 编写于 作者: Ł Łukasz Strzałkowski

Move abstract's controller tests to AV

The ones that were actually testing AV functionality and should belong in there
上级 7620ab08
require 'abstract_unit'
ActionController::Base.helpers_path = File.expand_path('../../fixtures/helpers', __FILE__)
ActionController::Base.helpers_path = File.expand_path('../../../fixtures/helpers', __FILE__)
module AbstractController
module Testing
......@@ -52,7 +52,7 @@ class AbstractHelpersBlock < ControllerWithHelpers
class AbstractInvalidHelpers < AbstractHelpers
include ActionController::Helpers
path = File.join(File.expand_path('../../fixtures', __FILE__), "helpers_missing")
path = File.join(File.expand_path('../../../fixtures', __FILE__), "helpers_missing")
$:.unshift(path)
self.helpers_path = path
end
......
module AbcHelper
def bare_a() end
def bare_b() end
def bare_c() end
end
module Fun
module GamesHelper
def stratego() "Iz guuut!" end
end
end
\ No newline at end of file
module Fun
module PdfHelper
def foobar() 'baz' end
end
end
module HelperyTestHelper
def helpery_test
"Default"
end
end
module JustMeHelper
def me() "mine!" end
end
\ No newline at end of file
module MeTooHelper
def me() "me too!" end
end
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册