debian-mirror-gitlab/spec/serializers/rollout_statuses/ingress_entity_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
386 B
Ruby
Raw Normal View History

2021-02-22 17:27:13 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe RolloutStatuses::IngressEntity do
include KubernetesHelpers
let(:canary_ingress) { kube_ingress(track: :canary) }
let(:entity) do
described_class.new(canary_ingress, request: double)
end
subject { entity.as_json }
it 'exposes canary weight' do
is_expected.to include(:canary_weight)
end
end