Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
# frozen_string_literal: true
RSpec.describe Onebox::Engine::GoogleDocsOnebox do
before do
@link = "https://docs.google.com/document/d/DOC_KEY/pub"
stub_request(:get, @link).to_return(status: 200, body: onebox_response("googledocs"))
end
include_context "with engines"
it_behaves_like "an engine"
describe "#to_html" do
it "has title" do
expect(html).to include("Lorem Ipsum!")
it "has description" do
expect(html).to include("Lorem Ipsum Lorem ipsum dolor sit amet, consectetur adipiscing elit")
it "has icon" do
expect(html).to include("googledocs-onebox-logo g-docs-logo")