Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.5 kB
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.