debian-mirror-gitlab/spec/lib/gitlab/no_cache_headers_spec.rb
2020-08-09 17:41:57 +05:30

20 lines
426 B
Ruby

# 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