Welcome to mirror list, hosted at ThFree Co, Russian Federation.

field_data_spec.rb « markdown_cache « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 76d8cbe6b7dbec53ea6baabc609dd2a7fd613c89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'fast_spec_helper'

RSpec.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