summaryrefslogtreecommitdiff
path: root/spec/serializers/merge_request_basic_entity_spec.rb
blob: 1cddd87e91732c3c4b38d463bc480c79306880ea (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 MergeRequestBasicEntity do
  let(:resource) { build(:merge_request) }

  subject do
    described_class.new(resource).as_json
  end

  it 'has public_merge_status as merge_status' do
    expect(resource).to receive(:public_merge_status).and_return('checking')

    expect(subject[:merge_status]).to eq 'checking'
  end
end