Sha256: c56f3f3a0ee766c5ecb2f6d299b576d658ac4503d07f139822ce4d0b06fcd4d9

Contents?: true

Size: 1.33 KB

Versions: 12

Compression:

Stored size: 1.33 KB

Contents

#!/usr/bin/env ruby
# encoding: utf-8

BEGIN {
	require 'pathname'
	basedir = Pathname.new( __FILE__ ).dirname.parent.parent

	libdir = basedir + 'lib'
	extdir = basedir + 'ext'

	$LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir )
	$LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
	$LOAD_PATH.unshift( extdir ) unless $LOAD_PATH.include?( extdir )
}

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 <http://www.FaerieMUD.org/>. You should follow it.
		---
		<p>This is a reference to <a href="http://www.FaerieMUD.org/">http://www.FaerieMUD.org/</a>. You should follow it.</p>
		---
	end

	it "supports FTP auto-link" do
		the_indented_markdown( <<-"---" ).should be_transformed_into(<<-"---").without_indentation
		Why not download your very own chandelier from <ftp://ftp.usuc.edu/pub/foof/mir/>?
		---
		<p>Why not download your very own chandelier from <a href="ftp://ftp.usuc.edu/pub/foof/mir/">ftp://ftp.usuc.edu/pub/foof/mir/</a>?</p>
		---
	end

end


Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/bluecloth-2.1.0/spec/bluecloth/autolinks_spec.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/bluecloth-2.1.0/spec/bluecloth/autolinks_spec.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/bluecloth-2.1.0/spec/bluecloth/autolinks_spec.rb
bluecloth-2.1.0-x86-mswin32 spec/bluecloth/autolinks_spec.rb
bluecloth-2.1.0-x86-mingw32 spec/bluecloth/autolinks_spec.rb
bluecloth-2.1.0 spec/bluecloth/autolinks_spec.rb
bluecloth-2.0.11 spec/bluecloth/autolinks_spec.rb
bluecloth-2.0.11-x86-mswin32 spec/bluecloth/autolinks_spec.rb
bluecloth-2.0.11-x86-mingw32 spec/bluecloth/autolinks_spec.rb
bluecloth-2.0.11pre158-x86-mingw32 spec/bluecloth/autolinks_spec.rb
bluecloth-2.0.11pre158-x86-mswin32 spec/bluecloth/autolinks_spec.rb
bluecloth-2.0.11pre158 spec/bluecloth/autolinks_spec.rb