|
@@ -35,7 +35,7 @@ shared_examples_for EmailConcern do
|
|
|
expect(agent).not_to be_valid
|
|
|
end
|
|
|
|
|
|
- it "should validate that recipients, when provided, is one or more valid email addresses" do
|
|
|
+ it "should validate that recipients, when provided, is one or more valid email addresses or Liquid commands" do
|
|
|
agent.options['recipients'] = ''
|
|
|
expect(agent).to be_valid
|
|
|
|
|
@@ -48,6 +48,9 @@ shared_examples_for EmailConcern do
|
|
|
agent.options['recipients'] = ['bob@example.com']
|
|
|
expect(agent).to be_valid
|
|
|
|
|
|
+ agent.options['recipients'] = '{{ email }}'
|
|
|
+ expect(agent).to be_valid
|
|
|
+
|
|
|
agent.options['recipients'] = ['bob@example.com', 'jane@example.com']
|
|
|
expect(agent).to be_valid
|
|
|
|