require File.dirname(__FILE__) + '/../test_helper' class TextileArticleTest < Test::Unit::TestCase def setup @profile = create_user('testing').person end attr_reader :profile should 'provide a proper short description' do assert_kind_of String, TextileArticle.short_description end should 'provide a proper description' do assert_kind_of String, TextileArticle.description end should 'convert Textile to HTML' do assert_equal '

my text

', TextileArticle.new(:body => '*my text*').to_html end should 'accept empty body' do a = TextileArticle.new a.expects(:body).returns(nil) assert_nothing_raised do assert_equal '', a.to_html end end end