1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test/template/file_system_resolver_test.rb
John Hawthorn 80e2aaa80a Add tests against resolver
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).
2019-04-11 17:09:00 -07:00

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