# frozen_string_literal: true
require "onebox/oembed"
RSpec.describe Onebox::Oembed do
it "excludes text tags" do
json = '{"text": ""}'
oembed = described_class.new(json)
expect(oembed.text).to be_nil
end
it "includes html tags" do
json = '{"html": ""}'
oembed = described_class.new(json)
expect(oembed.html).to eq("")
end
end