Class: ActionView::FixtureResolver
- Inherits:
-
PathResolver
- Object
- Resolver
- PathResolver
- ActionView::FixtureResolver
- Defined in:
- 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.
Constant Summary
Constants inherited from PathResolver
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ FixtureResolver
constructor
A new instance of FixtureResolver.
Methods inherited from PathResolver
Methods inherited from Resolver
Constructor Details
#initialize(hash = {}) ⇒ FixtureResolver
Returns a new instance of FixtureResolver.
11 12 13 14 |
# File 'lib/action_view/testing/resolvers.rb', line 11 def initialize(hash = {}) super() @hash = hash end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
9 10 11 |
# File 'lib/action_view/testing/resolvers.rb', line 9 def hash @hash end |