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: 513a39978e6869a65c80e2fec3e82cd5858dc92f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::NoCacheHeaders do
  before do
    stub_const('NoCacheTester', Class.new)
    NoCacheTester.class_eval do
      include Gitlab::NoCacheHeaders
    end
  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