Sha256: bf5a9fe5966de1ff799ac2d1c7683c2a1f66e44c8296136c3e01055dfa6f28f1

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

require "yaml"
require "json"

def fixture_file_path(filename)
  File.expand_path "spec/fixtures/#{filename}"
end

def read_fixture_file(filename)
  File.read fixture_file_path(filename)
end

def yaml_fixture_file(filename, **_params)
  YAML.load read_fixture_file(filename)
end

def json_fixture_file(filename)
  JSON.parse read_fixture_file(filename)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
open_api-loader-0.0.1 spec/support/fixture_helpers.rb