debian-mirror-gitlab/spec/lib/gitlab/markdown_cache/field_data_spec.rb
2020-08-09 17:41:57 +05:30

15 lines
400 B
Ruby

# 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