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.13.0 spec/fixture_helpers.rb
yaks-0.12.0 spec/fixture_helpers.rb
yaks-0.11.0 spec/fixture_helpers.rb
yaks-0.10.0 spec/fixture_helpers.rb
yaks-0.9.0 spec/fixture_helpers.rb
yaks-0.8.3 spec/fixture_helpers.rb
yaks-0.8.2 spec/fixture_helpers.rb
yaks-0.8.1 spec/fixture_helpers.rb
yaks-0.8.0 spec/fixture_helpers.rb
yaks-0.8.0.beta2 spec/fixture_helpers.rb
yaks-0.8.0.beta1 spec/fixture_helpers.rb
yaks-0.8.0.alpha spec/fixture_helpers.rb
yaks-0.7.7 spec/fixture_helpers.rb
yaks-0.7.6 spec/fixture_helpers.rb
yaks-0.7.5 spec/fixture_helpers.rb
yaks-0.7.4 spec/fixture_helpers.rb
yaks-0.7.3 spec/fixture_helpers.rb
yaks-0.7.2 spec/fixture_helpers.rb
yaks-0.7.1 spec/fixture_helpers.rb
yaks-0.7.0 spec/fixture_helpers.rb