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",