debian-mirror-gitlab/spec/lib/gitlab/no_cache_headers_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
426 B
Ruby
Raw Normal View History

2020-02-01 01:16:34 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe Gitlab::NoCacheHeaders do
2020-06-23 00:09:42 +05:30
before do
stub_const('NoCacheTester', Class.new)
NoCacheTester.class_eval do
include Gitlab::NoCacheHeaders
end
2020-02-01 01:16:34 +05:30
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