Sha256: 2745b3cfd6f2d9321eb0d7ede554447f77f766de6d1fcdf71d39364fc58fcce1

Contents?: true

Size: 280 Bytes

Versions: 32

Compression:

Stored size: 280 Bytes

Contents

require 'yaml'
require 'json'

module FixtureHelpers
  module_function

  def load_json_fixture(name)
    JSON.parse(Yaks::Root.join('spec/json', name + '.json').read)
  end

  def load_yaml_fixture(name)
    YAML.load(Yaks::Root.join('spec/yaml', name + '.yaml').read)
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
yaks-0.6.2 spec/fixture_helpers.rb
yaks-0.6.1 spec/fixture_helpers.rb
yaks-0.6.0 spec/fixture_helpers.rb
yaks-0.6.0.alpha.1 spec/fixture_helpers.rb
yaks-html-0.6.0.alpha yaks/spec/fixture_helpers.rb
yaks-0.6.0.alpha yaks/spec/fixture_helpers.rb
yaks-0.5.0 spec/fixture_helpers.rb
yaks-0.4.4 spec/fixture_helpers.rb
yaks-0.4.3 spec/fixture_helpers.rb
yaks-0.4.2 spec/fixture_helpers.rb
yaks-0.4.1 spec/fixture_helpers.rb
yaks-0.4.0 spec/fixture_helpers.rb