Skip to content

Commit 5f30cd9

Browse files
committed
Fix spec due to github/secure_headers#506
1 parent 5a683e9 commit 5f30cd9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/support/shared/with_direct_uploads.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,17 @@ def around(example)
6565

6666
csp_config = SecureHeaders::Configuration.instance_variable_get(:@default_config).csp
6767

68-
connect_src = csp_config.connect_src.dup
69-
form_action = csp_config.form_action.dup
68+
connect_src = csp_config[:connect_src].dup
69+
form_action = csp_config[:form_action].dup
7070

7171
begin
72-
csp_config.connect_src << "test-bucket.s3.amazonaws.com"
73-
csp_config.form_action << "test-bucket.s3.amazonaws.com"
72+
csp_config[:connect_src] << "test-bucket.s3.amazonaws.com"
73+
csp_config[:form_action] << "test-bucket.s3.amazonaws.com"
7474

7575
example.run
7676
ensure
77-
csp_config.connect_src = connect_src
78-
csp_config.form_action = form_action
77+
csp_config[:connect_src] = connect_src
78+
csp_config[:form_action] = form_action
7979
end
8080
end
8181

0 commit comments

Comments
 (0)