Sha256: d262fdde04b455ddf8ba8ca1bd6213aa07d2c27e2a30cb90f3c108067081f66c

Contents?: true

Size: 505 Bytes

Versions: 7

Compression:

Stored size: 505 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'helper'

describe Octokit::Client::Markdown do

  describe ".markdown" do

    before do
      @client = Octokit::Client.new
    end

    it "renders markdown" do
      stub_post("/markdown").
        to_return(:body => fixture("markdown_gfm"))
      text = "This is for #111"
      markdown = @client.markdown(text, :context => 'pengwynn/octokit', :mode => 'gfm')

      expect(markdown).to include('https://github.com/pengwynn/octokit/issues/111')
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
octokit-1.25.0 spec/octokit/client/markdown_spec.rb
octokit-1.24.0 spec/octokit/client/markdown_spec.rb
octokit-1.23.0 spec/octokit/client/markdown_spec.rb
octokit-1.22.0 spec/octokit/client/markdown_spec.rb
octokit-1.21.0 spec/octokit/client/markdown_spec.rb
octokit-1.20.0 spec/octokit/client/markdown_spec.rb
octokit-1.19.0 spec/octokit/client/markdown_spec.rb