Sha256: 2d2b4f9973f1bc0f181013783da313a91aeb9bf420c27b3bc1fa34d81be9af6d

Contents?: true

Size: 468 Bytes

Versions: 81

Compression:

Stored size: 468 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

81 entries across 81 versions & 1 rubygems

Version Path
brief-1.17.14 spec/lib/brief/models/page_spec.rb
brief-1.17.13 spec/lib/brief/models/page_spec.rb
brief-1.17.12 spec/lib/brief/models/page_spec.rb
brief-1.17.11 spec/lib/brief/models/page_spec.rb
brief-1.17.10 spec/lib/brief/models/page_spec.rb
brief-1.17.9 spec/lib/brief/models/page_spec.rb
brief-1.17.8 spec/lib/brief/models/page_spec.rb
brief-1.17.7 spec/lib/brief/models/page_spec.rb
brief-1.17.5 spec/lib/brief/models/page_spec.rb
brief-1.17.4 spec/lib/brief/models/page_spec.rb
brief-1.17.3 spec/lib/brief/models/page_spec.rb
brief-1.17.2 spec/lib/brief/models/page_spec.rb
brief-1.17.1 spec/lib/brief/models/page_spec.rb
brief-1.17.0 spec/lib/brief/models/page_spec.rb
brief-1.16.2 spec/lib/brief/models/page_spec.rb
brief-1.16.1 spec/lib/brief/models/page_spec.rb
brief-1.16.0 spec/lib/brief/models/page_spec.rb
brief-1.15.5 spec/lib/brief/models/page_spec.rb
brief-1.15.4 spec/lib/brief/models/page_spec.rb
brief-1.15.3 spec/lib/brief/models/page_spec.rb