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

Version Path
octokit-1.17.0 spec/octokit/client/markdown_spec.rb
octokit-1.15.1 spec/octokit/client/markdown_spec.rb
octokit-1.15.0 spec/octokit/client/markdown_spec.rb
octokit-1.14.0 spec/octokit/client/markdown_spec.rb
octokit-1.13.0 spec/octokit/client/markdown_spec.rb
octokit-1.12.0 spec/octokit/client/markdown_spec.rb
octokit-1.11.0 spec/octokit/client/markdown_spec.rb
octokit-1.10.0 spec/octokit/client/markdown_spec.rb
octokit-1.9.4 spec/octokit/client/markdown_spec.rb
octokit-1.9.3 spec/octokit/client/markdown_spec.rb
octokit-1.9.2 spec/octokit/client/markdown_spec.rb
octokit-1.9.1 spec/octokit/client/markdown_spec.rb