Sha256: 704972c11a1021683ff9276214602e3a1dcebace40b056069b6e894f1d852d06
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
require 'spec_helper' describe ReverseAdoc do let(:input) { File.read('spec/assets/escapables.html') } let(:document) { Nokogiri::HTML(input) } subject { ReverseAdoc.convert(input) } context "multiple asterisks" do it { is_expected.to include ' \*\*two asterisks\*\* ' } it { is_expected.to include ' \*\*\*three asterisks\*\*\* ' } it { is_expected.to include ' \*and*the\* ' } it { is_expected.to include ' asterisc*word ' } it { is_expected.to include ' asterisc**multword asterisks\*\*\* ' } end context "multiple underscores" do it { is_expected.to include ' \_\_two underscores\_\_ ' } it { is_expected.to include ' \_\_\_three underscores\_\_\_ ' } end context "multiple underscores with undersocre inside words and new lines" do it { is_expected.to include 'another_undersocre' } it { is_expected.to include ' \_\_\_three__underscores\_\_\_ ' } end context "underscores within words in code blocks" do let(:expected_output) { "....\nvar theoretical_max_infin = 1.0;\n....\n" } it { is_expected.to include expected_output } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reverse_adoc-0.3.7 | spec/components/escapables_spec.rb |
reverse_adoc-0.3.6 | spec/components/escapables_spec.rb |