Class: Kibutsu::FixtureFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/kibutsu/fixture_finder.rb

Overview

Finds fixture files with the right file extensions to load.

Instance Method Summary collapse

Constructor Details

#initialize(fixtures_path) ⇒ FixtureFinder

Returns a new instance of FixtureFinder.



4
5
6
# File 'lib/kibutsu/fixture_finder.rb', line 4

def initialize(fixtures_path)
  @fixtures_path = fixtures_path
end

Instance Method Details

#fixture_file_pathsObject



8
9
10
# File 'lib/kibutsu/fixture_finder.rb', line 8

def fixture_file_paths
  Dir[File.join(fixtures_path, '**', '*.{yml,yml.erb}')]
end