Use OSEM_NAME if available
This commit is contained in:
parent
803c98b158
commit
59cc57ebf8
2 changed files with 3 additions and 3 deletions
2
app/helpers/external/mailbluster_helper.rb
vendored
2
app/helpers/external/mailbluster_helper.rb
vendored
|
|
@ -20,7 +20,7 @@ module External
|
|||
'firstName' => user.name,
|
||||
'overrideExisting' => true,
|
||||
'subscribed' => true,
|
||||
'tags' => ['snapcon']
|
||||
'tags' => [ENV['OSEM_NAME'] || 'snapcon']
|
||||
}.to_json
|
||||
response = http.request(request)
|
||||
response.body
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ describe External::MailblusterHelper, type: :helper do
|
|||
\"email\": \"#{user.email}\",
|
||||
\"subscribed\": true,
|
||||
\"tags\": [
|
||||
\"snapcon\"
|
||||
#{ENV['OSEM_NAME'] || 'snapcon'}
|
||||
],
|
||||
}
|
||||
}"
|
||||
|
|
@ -32,7 +32,7 @@ describe External::MailblusterHelper, type: :helper do
|
|||
'firstName': user.name,
|
||||
'overrideExisting': true,
|
||||
'subscribed': true,
|
||||
'tags': ['snapcon']
|
||||
'tags': [ENV['OSEM_NAME'] || 'snapcon']
|
||||
}.to_json)
|
||||
expect(response).to eq(response_body)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue