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

changelog_spec.rb « entities « api « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2cf585d4e0e445fc83b85c164d9f0c27672fa293 (plain)
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 API::Entities::Changelog do
  let(:changelog) { "This is a changelog" }

  subject { described_class.new(changelog).as_json }

  it 'exposes correct attributes' do
    expect(subject).to include(:notes)
  end

  it 'exposes correct notes' do
    expect(subject[:notes]).to eq(changelog)
  end
end