public
Fork of mislav/bluecloth
Description: Markdown processor in Ruby; foked from official SVN repo to fix bugs
Homepage: http://www.deveiate.org/projects/BlueCloth
Clone URL: git://github.com/github/bluecloth.git
bluecloth / spec / spec_helper.rb
100644 28 lines (21 sloc) 0.531 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'rubygems'
gem 'rspec', '~> 1.1.3'
require 'spec'
# gem 'mocha', '~> 0.5.6'
# require 'mocha'
 
require 'bluecloth'
 
module BlueClothHelper
  protected
  
    def markdown(input, *other)
      bluecloth(input, *other).to_html
    end
 
    def bluecloth(input, *other)
      BlueCloth.new(input, *other)
    end
end
 
Spec::Runner.configure do |config|
  # config.include My::Pony, My::Horse, :type => :farm
  config.include BlueClothHelper
  # config.predicate_matchers[:swim] = :can_swim?
  
  # config.mock_with :mocha
end