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

core_spec.rb « status « ci « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b68e4f0343357d07412a9d294d8429ce9b43f937 (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 Gitlab::Ci::Status::Core do
  let(:subj) { double("subject", cache_key: "foo") }

  subject(:status) do
    described_class.new(subj, double("user"))
  end

  describe "#cache_key" do
    it "uses the subject's cache key" do
      expect(status.cache_key).to eq(subj.cache_key)
    end
  end
end