1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Move abstract's controller tests to AV

The ones that were actually testing AV functionality and should belong in there
This commit is contained in:
Łukasz Strzałkowski 2013-08-14 01:13:43 +02:00
parent 7620ab08be
commit e10a25310f
21 changed files with 28 additions and 2 deletions

View file

@ -1,6 +1,6 @@
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 @@ module AbstractController
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

View file

@ -0,0 +1,5 @@
module AbcHelper
def bare_a() end
def bare_b() end
def bare_c() end
end

View file

@ -0,0 +1,5 @@
module Fun
module GamesHelper
def stratego() "Iz guuut!" end
end
end

View file

@ -0,0 +1,5 @@
module Fun
module PdfHelper
def foobar() 'baz' end
end
end

View file

@ -0,0 +1,5 @@
module HelperyTestHelper
def helpery_test
"Default"
end
end

View file

@ -0,0 +1,3 @@
module JustMeHelper
def me() "mine!" end
end

View file

@ -0,0 +1,3 @@
module MeTooHelper
def me() "me too!" end
end