Sha256: 70a003509e99ef29e1ca9c137cd8362566c0112c1376d34f57e32ff8ff6f3dd7
Contents?: true
Size: 532 Bytes
Versions: 14
Compression:
Stored size: 532 Bytes
Contents
# Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require File.expand_path('../../../../spec/helper', __FILE__) spec_require 'maruku' class SpecHelperMaruku < Ramaze::Controller map '/' helper :maruku def index maruku('# Hello') end end describe Ramaze::Helper::Maruku do behaves_like :rack_test it 'converts a markdown string to html' do get('/').body.should =~ /<h1 id=["']hello["']>Hello<\/h1>/ end end
Version data entries
14 entries across 14 versions & 3 rubygems