mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
16 lines
542 B
Ruby
16 lines
542 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "abstract_unit"
|
|
|
|
class FallbackFileSystemResolverTest < ActiveSupport::TestCase
|
|
def setup
|
|
@root_resolver = ActionView::FallbackFileSystemResolver.new("/")
|
|
end
|
|
|
|
def test_should_have_no_virtual_path
|
|
templates = @root_resolver.find_all("hello_world.erb", "#{FIXTURE_LOAD_PATH}/test", false, locale: [], formats: [:html], variants: [], handlers: [:erb])
|
|
assert_equal 1, templates.size
|
|
assert_equal "Hello world!", templates[0].source
|
|
assert_nil templates[0].virtual_path
|
|
end
|
|
end
|