Skip to content

Commit

Permalink
Merge pull request #62 from sendwithus/add-customer-get-test
Browse files Browse the repository at this point in the history
Add customer get test, increment version, clean up
  • Loading branch information
demoore authored Sep 28, 2016
2 parents 55b44d7 + e2e8190 commit 6d3fb2b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
18 changes: 10 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
1.11.5 - added tags to drip campaign activations
1.11.4 - added optional parameters to customer_create
1.11.3 - fix bug in customer remove method where arguments were empty
1.11.2 - fix bug in logs method where options weren't being respected
1.11.1 - fix typo in group method
1.11.0 - add template create/update methods as well as group create/update methods
1.10.2 - include render parameter on locale
1.10.1 - tag support, error base class, logs method
1.13.0 - Add support to get customer details
1.12.0 - Customer logs endpoint added and optional parameters for logs fixed when no options sent
1.11.5 - Added tags to drip campaign activations
1.11.4 - Added optional parameters to customer_create
1.11.3 - Fix bug in customer remove method where arguments were empty
1.11.2 - Fix bug in logs method where options weren't being respected
1.11.1 - Fix typo in group method
1.11.0 - Add template create/update methods as well as group create/update methods
1.10.2 - Include render parameter on locale
1.10.1 - Tag support, error base class, logs method
1.9.0 - Locale support. Introduce send\_email(). Deprecate send\_with().
1.8.0 - Tags support for send\_with
1.7.0 -
Expand Down
2 changes: 1 addition & 1 deletion lib/send_with_us/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module SendWithUs
VERSION = '1.12.1'
VERSION = '1.13.0'
end
7 changes: 7 additions & 0 deletions test/lib/send_with_us/api_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,11 @@
it { subject.start_on_drip_campaign(email, drip_campaign_id, {}, locale, tags) }
end
end

describe '#customer_get' do
let(:email) {'[email protected]'}
before { SendWithUs::ApiRequest.any_instance.expects(:get).with("customers/#{email}") }

it { subject.customer_get(email) }
end
end

0 comments on commit 6d3fb2b

Please sign in to comment.