Sha256: 694b577e96a0b52e26cb7d1947c3204e9b1ba0694df69d5893d02ed61ece8995

Contents?: true

Size: 366 Bytes

Versions: 28

Compression:

Stored size: 366 Bytes

Contents

require 'trailer_vote/fixtures/version'
require 'oj'

module TrailerVote
  module Fixtures
    FIXTURE_DIRECTORY = File.expand_path(File.join(__dir__, 'fixtures')).freeze

    module_function

    def load(media_type, options = Oj.default_options)
      path = File.join(FIXTURE_DIRECTORY, *media_type.split('/'))
      Oj.load_file(path, options)
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
trailer_vote-fixtures-1.5.1 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.5.0 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.3.4 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.3.3 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.3.2 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.3.1 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-1.3.0 lib/trailer_vote/fixtures.rb
trailer_vote-fixtures-0.1.0 lib/trailer_vote/fixtures.rb