mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
80e2aaa80a
We didn't previously have many tests directly against the OptimizedFileSystemResolver or FileSystemResolver, though usually failures would be exposed through other tests. It's easier to test some specifics of the behaviour with unit tests. This also lets us test FileSystemResolver (non-optimized) which I don't think previously had much testing (other than from classses inheriting it).
12 lines
255 B
Ruby
12 lines
255 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "abstract_unit"
|
|
require "template/resolver_shared_tests"
|
|
|
|
class FileSystemResolverTest < ActiveSupport::TestCase
|
|
include ResolverSharedTests
|
|
|
|
def resolver
|
|
ActionView::FileSystemResolver.new(tmpdir)
|
|
end
|
|
end
|