Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (20 sloc) 500 Bytes
require 'spec_helper'
class Message
include Mongoid::Document
include Mongoid::Markdown
field :body, :markdown => true
end
describe "MongoidMarkdown" do
subject { Message.new :body => markdown_text }
let(:markdown_text) { '## Hello world '}
describe '.markdown!' do
before :each do
subject.markdown!
end
it "should markup text" do
subject.marked_down?.should be_true
puts subject.body
subject.body.should_not == markdown_text
end
end
end
Jump to Line
Something went wrong with that request. Please try again.