File: iframe_spec.rb

package info (click to toggle)
ruby-reverse-markdown 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 440 kB
  • sloc: ruby: 1,452; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'spec_helper'

describe ReverseMarkdown do
  let(:input)    { File.read('spec/assets/iframe.html') }
  let(:document) { Nokogiri::HTML(input) }
  subject { ReverseMarkdown.convert(input) }

  it do
    expected = <<~MD
      # Welcome to My Page

      This is a sample paragraph before the iframe.

      https://www.example.com

      This is a sample paragraph after the iframe.

    MD

    expect(subject).to eq expected
  end
end