Sha256: b8bfdaa852d9b27d1f3e71ce6ba2314b636b6fc7c2f57dd685f2323117725c50

Contents?: true

Size: 469 Bytes

Versions: 5

Compression:

Stored size: 469 Bytes

Contents

require "spec_helper"

describe "The Page Document Type" do
  let(:page) { Brief.page_document.to_model }

  it "should have content" do
    expect(page.to_html).to include("Summary")
  end

  it "should have the paragraph" do
    expect(page.paragraph).not_to be_nil
  end

  it "should have the right extracted content data" do
    expect(page.extracted_content_data.title).to eq("Summary")
    expect(page.extracted_content_data.paragraph).not_to be_nil
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
brief-1.11.10 spec/lib/brief/models/page_spec.rb
brief-1.11.9 spec/lib/brief/models/page_spec.rb
brief-1.11.8 spec/lib/brief/models/page_spec.rb
brief-1.11.7 spec/lib/brief/models/page_spec.rb
brief-1.11.6 spec/lib/brief/models/page_spec.rb