File: markdown_spec.rb

package info (click to toggle)
ruby-gitlab 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,660 kB
  • sloc: ruby: 12,582; makefile: 7; sh: 4
file content (17 lines) | stat: -rw-r--r-- 489 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::Client do
  describe '.markdown' do
    before do
      stub_post('/markdown', 'markdown')
      Gitlab.markdown('Hello world! :tada:', gfm: true, project: 'group_example/project_example')
    end

    it 'gets the correct resource' do
      expect(a_post('/markdown')
        .with(body: { text: 'Hello world! :tada:', gfm: true, project: 'group_example/project_example' })).to have_been_made
    end
  end
end