Sha256: 4454140a9bcc0684c75b2f77d21dcb1c7da1807a8b40452d018c034489f712ac

Contents?: true

Size: 583 Bytes

Versions: 2

Compression:

Stored size: 583 Bytes

Contents

require "spec_helper"

describe ReverseAdoc do
  let(:input)    { File.read("spec/assets/paragraphs.html") }
  let(:document) { Nokogiri::HTML(input) }
  subject { ReverseAdoc.convert(input) }

  it { is_expected.not_to start_with "\n\n" }
  it { is_expected.to start_with "First content\n\nSecond content\n\n" }
  it { is_expected.to include "\n\n_Complex_\n\n\.\.\.\.\n\n        Content\n" }
  it { is_expected.to include "*Trailing whitespace:*" }
  it { is_expected.to include "*Trailing non-breaking space: *" }
  it { is_expected.to include "*_Combination: _*" }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reverse_adoc-1.0.1 spec/components/paragraphs_spec.rb
reverse_adoc-1.0.0 spec/components/paragraphs_spec.rb