spec/griddler/sendgrid/adapter_spec.rb in griddler-sendgrid-1.0.0 vs spec/griddler/sendgrid/adapter_spec.rb in griddler-sendgrid-1.0.1
- old
+ new
@@ -82,10 +82,11 @@
normalized_params = normalize_params(default_params)
normalized_params[:to].should eq [
'"Mr Fugushima at Fugu, Inc" <hi@example.com>',
'Foo bar <foo@example.com>',
+ '"Eichhörnchen" <squirrel@example.com>',
'no-name@example.com',
]
end
it 'wraps cc in an array' do
@@ -129,10 +130,10 @@
end
def default_params
{
text: 'hi',
- to: '"Mr Fugushima at Fugu, Inc" <hi@example.com>, Foo bar <foo@example.com>, <no-name@example.com>',
+ to: '"Mr Fugushima at Fugu, Inc" <hi@example.com>, Foo bar <foo@example.com>, Eichhörnchen <squirrel@example.com>, <no-name@example.com>',
cc: 'cc@example.com',
from: 'there@example.com',
envelope: "{\"to\":[\"johny@example.com\"], \"from\": [\"there@example.com\"]}",
}
end