Sha256: 3d8b098e927161bacb2c07f14fd04af5a383b8f5505a9538b974935c49fe85a7

Contents?: true

Size: 672 Bytes

Versions: 1

Compression:

Stored size: 672 Bytes

Contents

require "yarf/version"

# Yarf means "Yet Another Rails Fixture"
module Yarf
  autoload :Config     , "yarf/config"
  autoload :ModelConfig, "yarf/model_config"
  autoload :Dumper     , "yarf/dumper"
  autoload :Recorder   , "yarf/recorder"

  class << self
    attr_writer :config_path
    def config_path
      @config_path ||= Dir.glob("**/spec/fixtures/config.yml").first
    end
    def instance
      @instance ||= Config.load_file(config_path)
    end
    def record(name)
      instance.record(name)
    end
    def run_scenarios(*args)
      instance.run_scenarios(*args)
    end
    def load_fixtures(*args)
      instance.load_fixtures(*args)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yarf-0.1.0 lib/yarf.rb