17 lines
365 B
Ruby
17 lines
365 B
Ruby
# 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
|