-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234 from intercom/MM/hide_default_launcher2
add hide_default_launcher to config
- Loading branch information
Showing
7 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ | |
:email => '[email protected]', | ||
:user_id => 'marco', | ||
}) | ||
expect(script_tag.csp_sha256).to eq("'sha256-QmMmBpC2AxZc9zd18FvMACQwKPbnGG/kGMN4dGJeB3w='") | ||
expect(script_tag.csp_sha256).to eq("'sha256-qLRbekKD6dEDMyLKPNFYpokzwYCz+WeNPqJE603mT24='") | ||
end | ||
|
||
it 'inserts a valid nonce if present' do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,12 +118,14 @@ def sha256_hmac(secret, input) | |
it 'knows about :custom' do | ||
IntercomRails.config.inbox.style = :custom | ||
expect(ScriptTag.new.intercom_settings['widget']).to eq({'activator' => '#Intercom'}) | ||
expect(ScriptTag.new.intercom_settings['hide_default_launcher']).to eq(true) | ||
end | ||
it 'knows about :custom_activator' do | ||
IntercomRails.config.inbox.style = :custom | ||
IntercomRails.config.inbox.custom_activator = '.intercom' | ||
expect(ScriptTag.new.intercom_settings['widget']).to eq({'activator' => '.intercom'}) | ||
end | ||
it 'knows about :hide_default_launcher' do | ||
IntercomRails.config.hide_default_launcher = true | ||
expect(ScriptTag.new.intercom_settings['hide_default_launcher']).to eq(true) | ||
end | ||
end | ||
|
@@ -171,7 +173,7 @@ def sha256_hmac(secret, input) | |
:email => '[email protected]', | ||
:user_id => 'marco', | ||
}) | ||
expect(script_tag.csp_sha256).to eq("'sha256-QmMmBpC2AxZc9zd18FvMACQwKPbnGG/kGMN4dGJeB3w='") | ||
expect(script_tag.csp_sha256).to eq("'sha256-qLRbekKD6dEDMyLKPNFYpokzwYCz+WeNPqJE603mT24='") | ||
end | ||
|
||
it 'inserts a valid nonce if present' do | ||
|