# frozen_string_literal: true RSpec.describe Onebox::Engine::AudioComOnebox do it "has the iframe with the correct audio" do stub_request( :get, "https://api.audio.com/oembed?maxheight=228&url=https://audio.com/agilov/audio/discourse-onebox-test-audio", ).to_return(status: 200, body: onebox_response("audio_com_audio_oembed")) expect( Onebox.preview("https://audio.com/agilov/audio/discourse-onebox-test-audio").to_s, ).to match(%r{