debian-mirror-gitlab/spec/serializers/merge_request_basic_entity_spec.rb
2020-04-22 19:07:51 +05:30

17 lines
386 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
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