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

no_cache_headers_spec.rb « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f011b55006e98a485cf28e407ba12cb558cac745 (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'

describe Gitlab::NoCacheHeaders do
  class NoCacheTester
    include Gitlab::NoCacheHeaders
  end

  describe "#no_cache_headers" do
    subject { NoCacheTester.new }

    it "raises a RuntimeError" do
      expect { subject.no_cache_headers }.to raise_error(RuntimeError)
    end
  end
end