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.
Methods
Attributes
[R] | hash |
Class Public methods
new(hash = {}, pattern = nil)
Source:
# File actionview/lib/action_view/testing/resolvers.rb, line 13
def initialize(hash = {}, pattern = nil)
super(pattern)
@hash = hash
end