Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Varpuspaavi committed Jul 9, 2024
1 parent 477eda2 commit 1eb541d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/phraseapp-in-context-editor-ruby/view_helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
require "phraseapp-in-context-editor-ruby"
require "phraseapp-in-context-editor-ruby/view_helpers"

def content_security_policy_nonce
"some_nonce"
end

describe PhraseApp::InContextEditor::ViewHelpers do
before(:all) do
class Helpers
Expand All @@ -20,7 +24,7 @@ class Helpers
before(:each) { PhraseApp::InContextEditor.config.enabled = true }

describe "has right ICE bundle address" do
it { is_expected.to include("<script>") }
it { is_expected.to include("<script nonce='some_nonce'>") }
it { is_expected.to include("https://d2bgdldl6xit7z.cloudfront.net/latest/ice/index.js") }
it { is_expected.to include("</script>") }
end
Expand Down

0 comments on commit 1eb541d

Please sign in to comment.