require_relative "./helpers" describe RedCloth::Formatters::RDoc do it "should convert the textile fixture to the rdoc fixture" do textile = File.open("spec/fixtures/sample.textile", "r"){ |file| file.read } rdoc = File.open("spec/fixtures/sample.rdoc", "r"){ |file| file.read } RedCloth.new(textile).to_rdoc.should == rdoc end end