Skip to Content Skip to Search

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
D
N
T

Class Public methods

new(hash = {})

# File actionview/lib/action_view/testing/resolvers.rb, line 12
def initialize(hash = {})
  super("")
  @hash = hash
  @path = ""
end

Instance Public methods

data()

# File actionview/lib/action_view/testing/resolvers.rb, line 18
def data
  @hash
end

to_s()

# File actionview/lib/action_view/testing/resolvers.rb, line 22
def to_s
  @hash.keys.join(", ")
end