Sha256: f863109b989954321edaa87fc37a9568f77c3dca032df8f82f233768ada40bf0
Contents?: true
Size: 878 Bytes
Versions: 8
Compression:
Stored size: 878 Bytes
Contents
require 'spec_helper' describe ReverseMarkdown::Mapper do let(:input) { File.read('spec/assets/code.html') } let(:document) { Nokogiri::HTML(input) } subject { ReverseMarkdown.parse_string(input) } it { should match /inline `code` block/ } it { should match /\ var this\;\n this\.is/ } it { should match /block"\)\n console/ } context "with github style code blocks" do subject { ReverseMarkdown.parse_string(input, :github_style_code_blocks => true) } it { should match /inline `code` block/ } it { should match /```\nvar this\;\nthis/ } it { should match /it is"\) ?\n\t\n```/ } end context "code with indentation" do subject { ReverseMarkdown.parse_string(input) } it { should match(/^ tell application "Foo"\n/) } it { should match(/^ beep\n/) } it { should match(/^ end tell\n/) } end end
Version data entries
8 entries across 8 versions & 1 rubygems