#!/usr/bin/env ruby # encoding: utf-8 BEGIN { require 'pathname' basedir = Pathname.new( __FILE__ ).dirname.parent.parent libdir = basedir + 'lib' $LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir ) $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) } require 'rspec' require 'bluecloth' require 'spec/lib/helpers' ##################################################################### ### C O N T E X T S ##################################################################### describe BlueCloth, "auto-links" do it "supports HTTP auto-links" do the_indented_markdown( <<-"---" ).should be_transformed_into(<<-"---").without_indentation This is a reference to . You should follow it. ---

This is a reference to http://www.FaerieMUD.org/. You should follow it.

--- end it "supports FTP auto-link" do the_indented_markdown( <<-"---" ).should be_transformed_into(<<-"---").without_indentation Why not download your very own chandelier from ? ---

Why not download your very own chandelier from ftp://ftp.usuc.edu/pub/foof/mir/?

--- end end