debian-mirror-gitlab/spec/lib/api/entities/changelog_spec.rb

18 lines
366 B
Ruby
Raw Normal View History

2022-01-26 12:08:38 +05:30
# 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