require "spec_helper" describe ReverseAdoc::Converters::Blockquote do let(:converter) { ReverseAdoc::Converters::Blockquote.new } it "converts nested elements as well" do input = node_for("
") result = converter.convert(input) expect(result).to eq "\n\n____\n* foo\n____\n\n" end it "can deal with paragraphs inside" do input = node_for("

Some text.

Some more text.

") result = converter.convert(input) expect(result).to eq "\n\n____\nSome text.\n\nSome more text.\n____\n\n" end it "can deal with cite attribute" do input = node_for("

Some text.

Some more text.

") result = converter.convert(input) expect(result).to eq "\n\n[quote,http://www.example.com]\n____\nSome text.\n\nSome more text.\n____\n\n" end end