From a21e0bf4636d31b4fcf02ef9886eff85b0f6de6b Mon Sep 17 00:00:00 2001 From: Brian Quinn Date: Fri, 21 Mar 2014 20:49:41 +0000 Subject: [PATCH] Update mandrill to use new format param names --- .gitignore | 1 + mandrill_endpoint.rb | 2 +- spec/mandrill_endpoint_spec.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c570838..d263f9e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.swp *.swo config/deploy.rb +.bundle/ diff --git a/mandrill_endpoint.rb b/mandrill_endpoint.rb index 35b7134..4583f2d 100644 --- a/mandrill_endpoint.rb +++ b/mandrill_endpoint.rb @@ -20,7 +20,7 @@ class MandrillEndpoint < EndpointBase::Sinatra::Base # create Mandrill request # request_body = { - key: @config['mandrill.api_key'], + key: @config['mandrill_api_key'], template_name: template, message: { from_email: from_addr, diff --git a/spec/mandrill_endpoint_spec.rb b/spec/mandrill_endpoint_spec.rb index 2d9a50a..d67ce4e 100644 --- a/spec/mandrill_endpoint_spec.rb +++ b/spec/mandrill_endpoint_spec.rb @@ -5,7 +5,7 @@ let(:payload) { '{"request_id": "12e12341523e449c3000001", "parameters": { - "mandrill.api_key":"abc123"}, + "mandrill_api_key":"abc123"}, "email": { "to": "spree@example.com", "from": "spree@example.com",