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:
parent
7620ab08be
commit
e10a25310f
21 changed files with 28 additions and 2 deletions
|
@ -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
|
5
actionview/test/fixtures/helpers/abc_helper.rb
vendored
Normal file
5
actionview/test/fixtures/helpers/abc_helper.rb
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
module AbcHelper
|
||||
def bare_a() end
|
||||
def bare_b() end
|
||||
def bare_c() end
|
||||
end
|
5
actionview/test/fixtures/helpers/fun/games_helper.rb
vendored
Normal file
5
actionview/test/fixtures/helpers/fun/games_helper.rb
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
module Fun
|
||||
module GamesHelper
|
||||
def stratego() "Iz guuut!" end
|
||||
end
|
||||
end
|
5
actionview/test/fixtures/helpers/fun/pdf_helper.rb
vendored
Normal file
5
actionview/test/fixtures/helpers/fun/pdf_helper.rb
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
module Fun
|
||||
module PdfHelper
|
||||
def foobar() 'baz' end
|
||||
end
|
||||
end
|
5
actionview/test/fixtures/helpers/helpery_test_helper.rb
vendored
Normal file
5
actionview/test/fixtures/helpers/helpery_test_helper.rb
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
module HelperyTestHelper
|
||||
def helpery_test
|
||||
"Default"
|
||||
end
|
||||
end
|
3
actionview/test/fixtures/helpers/just_me_helper.rb
vendored
Normal file
3
actionview/test/fixtures/helpers/just_me_helper.rb
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
module JustMeHelper
|
||||
def me() "mine!" end
|
||||
end
|
3
actionview/test/fixtures/helpers/me_too_helper.rb
vendored
Normal file
3
actionview/test/fixtures/helpers/me_too_helper.rb
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
module MeTooHelper
|
||||
def me() "me too!" end
|
||||
end
|
Loading…
Reference in a new issue