summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/markdown_cache/field_data_spec.rb
blob: 393bf85aa43fe9a5eb275dded055ec6cc890daa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'fast_spec_helper'

describe Gitlab::MarkdownCache::FieldData do
  subject(:field_data) { described_class.new }

  before do
    field_data[:description] = { project: double('project in context') }
  end

  it 'translates a markdown field name into a html field name' do
    expect(field_data.html_field(:description)).to eq("description_html")
  end
end