Sha256: da2d9be018720ce50988bee9ccfbc179b9d7fb7cfa9948d7e06d4bd7319d336d

Contents?: true

Size: 433 Bytes

Versions: 6

Compression:

Stored size: 433 Bytes

Contents

module StepHelper
  def StepHelper.load_fixtures(path)
    fixtures_folder = path
    fixtures = Dir[File.join(fixtures_folder, '*.yml')].map {|f| File.basename(f, '.yml') }

    if defined? Fixtures == nil
      Fixtures.reset_cache
      Fixtures.create_fixtures(fixtures_folder, fixtures)
    else
      ActiveRecord::Fixtures.reset_cache
      ActiveRecord::Fixtures.create_fixtures(fixtures_folder, fixtures)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
data_active-0.0.6 features/step_definitions/step_helper.rb
data_active-0.0.5 features/step_definitions/step_helper.rb
data_active-0.0.4 features/step_definitions/step_helper.rb
data_active-0.0.3 features/step_definitions/step_helper.rb
data_active-0.0.2 features/step_definitions/step_helper.rb
data_active-0.0.1 features/step_definitions/step_helper.rb