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.15.2 spec/lib/brief/models/page_spec.rb
brief-1.15.1 spec/lib/brief/models/page_spec.rb
brief-1.15.0 spec/lib/brief/models/page_spec.rb
brief-1.14.3 spec/lib/brief/models/page_spec.rb
brief-1.14.2 spec/lib/brief/models/page_spec.rb
brief-1.14.1 spec/lib/brief/models/page_spec.rb
brief-1.14.0 spec/lib/brief/models/page_spec.rb
brief-1.13.2 spec/lib/brief/models/page_spec.rb
brief-1.13.1 spec/lib/brief/models/page_spec.rb
brief-1.12.9 spec/lib/brief/models/page_spec.rb
brief-1.12.8 spec/lib/brief/models/page_spec.rb
brief-1.12.7 spec/lib/brief/models/page_spec.rb
brief-1.12.6 spec/lib/brief/models/page_spec.rb
brief-1.12.5 spec/lib/brief/models/page_spec.rb
brief-1.12.4 spec/lib/brief/models/page_spec.rb
brief-1.12.3 spec/lib/brief/models/page_spec.rb
brief-1.12.2 spec/lib/brief/models/page_spec.rb
brief-1.12.1 spec/lib/brief/models/page_spec.rb
brief-1.12.0 spec/lib/brief/models/page_spec.rb
brief-1.11.5 spec/lib/brief/models/page_spec.rb