Sha256: 03d28720e7912ce58ec157bcd4fea1930b9709da21745854c9fdf6d5db62f528
Contents?: true
Size: 510 Bytes
Versions: 12
Compression:
Stored size: 510 Bytes
Contents
# -*- encoding: utf-8 -*- require 'helper' describe Octokit::Client::Markdown do describe ".markdown" do before do @client = Octokit::Client.new end it "should render markdown" do stub_post("/markdown"). to_return(:body => fixture("v3/markdown_gfm")) text = "This is for #111" markdown = @client.markdown(text, :context => 'pengwynn/octokit', :mode => 'gfm') markdown.should include('https://github.com/pengwynn/octokit/issues/111') end end end
Version data entries
12 entries across 12 versions & 1 rubygems