diff options
Diffstat (limited to 'spec/lib/gitlab/ci/status/core_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/status/core_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/status/core_spec.rb b/spec/lib/gitlab/ci/status/core_spec.rb new file mode 100644 index 00000000000..b68e4f03433 --- /dev/null +++ b/spec/lib/gitlab/ci/status/core_spec.rb @@ -0,0 +1,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 |