lib/sequel-fixture.rb in gamera-sequel-fixture-2.0.3 vs lib/sequel-fixture.rb in gamera-sequel-fixture-2.0.4
- old
+ new
@@ -1,8 +1,7 @@
require "sequel"
require "symbolmatrix"
-require "fast"
require "sequel-fixture/version"
require "sequel-fixture/exceptions"
require "sequel-fixture/util"
require "sequel-fixture/table"
@@ -45,10 +44,10 @@
# Loads the fixture files into this instance
#
def load(fixture)
raise LoadingFixtureIllegal, "A check has already been made, loading a different fixture is illegal" if @checked
- Fast.dir("#{fixtures_path}/#{fixture}").files.each do |file|
+ Dir.entries("#{fixtures_path}/#{fixture}").reject {|f| f =~ /^\./} .each do |file|
key = file.split('.').first.to_sym
@data ||= {}
@schema ||= {}
file_data = SymbolMatrix.new "#{fixtures_path}/#{fixture}/#{file}"