Class: ActionView::FixtureResolver
- Inherits:
-
FileSystemResolver
- Object
- Resolver
- FileSystemResolver
- ActionView::FixtureResolver
- Defined in:
- actionview/lib/action_view/testing/resolvers.rb
Overview
Use FixtureResolver in your tests to simulate the presence of files on the file system. This is used internally by Rails’ own test suite, and is useful for testing extensions that have no way of knowing what the file system will look like at runtime.
Instance Attribute Summary
Attributes inherited from FileSystemResolver
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(hash = {}) ⇒ FixtureResolver
constructor
A new instance of FixtureResolver.
- #to_s ⇒ Object
Methods inherited from FileSystemResolver
#all_template_paths, #built_templates, #clear_cache, #eql?
Methods inherited from Resolver
#all_template_paths, #built_templates, #clear_cache, #find_all
Methods included from ActiveSupport::Deprecation::DeprecatedConstantAccessor
Constructor Details
#initialize(hash = {}) ⇒ FixtureResolver
Returns a new instance of FixtureResolver.
11 12 13 14 15 |
# File 'actionview/lib/action_view/testing/resolvers.rb', line 11 def initialize(hash = {}) super("") @hash = hash @path = "" end |