Use OSEM_NAME if available
This commit is contained in:
parent
af06589230
commit
0c055a1297
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,
|
'firstName' => user.name,
|
||||||
'overrideExisting' => true,
|
'overrideExisting' => true,
|
||||||
'subscribed' => true,
|
'subscribed' => true,
|
||||||
'tags' => ['snapcon']
|
'tags' => [ENV['OSEM_NAME'] || 'snapcon']
|
||||||
}.to_json
|
}.to_json
|
||||||
response = http.request(request)
|
response = http.request(request)
|
||||||
response.body
|
response.body
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ describe External::MailblusterHelper, type: :helper do
|
||||||
\"email\": \"#{user.email}\",
|
\"email\": \"#{user.email}\",
|
||||||
\"subscribed\": true,
|
\"subscribed\": true,
|
||||||
\"tags\": [
|
\"tags\": [
|
||||||
\"snapcon\"
|
#{ENV['OSEM_NAME'] || 'snapcon'}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
}"
|
}"
|
||||||
|
|
@ -32,7 +32,7 @@ describe External::MailblusterHelper, type: :helper do
|
||||||
'firstName': user.name,
|
'firstName': user.name,
|
||||||
'overrideExisting': true,
|
'overrideExisting': true,
|
||||||
'subscribed': true,
|
'subscribed': true,
|
||||||
'tags': ['snapcon']
|
'tags': [ENV['OSEM_NAME'] || 'snapcon']
|
||||||
}.to_json)
|
}.to_json)
|
||||||
expect(response).to eq(response_body)
|
expect(response).to eq(response_body)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue