# frozen_string_literal: true

require "test_helper"

module ActiveAnalysis
  class Analyzer::AudioAnalyzerTest < ActiveSupport::TestCase
    test "analyzing an audio" do
      blob = create_file_blob(filename: "audio.mp3", content_type: "audio/mp3")
      metadata = extract_metadata_from(blob)

      assert_equal 0.914286, metadata[:duration]
      assert_equal 128000, metadata[:bit_rate]
    end
  end
end
