lib/trailer_vote/fixtures.rb in trailer_vote-fixtures-0.1.0 vs lib/trailer_vote/fixtures.rb in trailer_vote-fixtures-1.2.0

- old
+ new

@@ -1,15 +1,15 @@ -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 +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