We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cce2ec commit 44e5857Copy full SHA for 44e5857
1 file changed
spec/lib/secure_headers_spec.rb
@@ -21,6 +21,13 @@ module SecureHeaders
21
end.to raise_error(Configuration::NotYetConfiguredError)
22
end
23
24
+ it "raises a AlreadyConfiguredError if trying to configure and default has already been set " do
25
+ Configuration.default
26
+ expect do
27
28
+ end.to raise_error(Configuration::AlreadyConfiguredError)
29
+ end
30
+
31
it "raises and ArgumentError when referencing an override that has not been set" do
32
expect do
33
Configuration.default
0 commit comments